Shopify get theme content JSON response using API - shopify

I am doing application for shopify using shopifyGraphQL storefront.
On the shopify website is using some theme. from the theme admin can sent banner and some advertisement message.
now i want to get those home page data on my mobile application (Data is set on the theme so question is how to get those data using APIs or any other way.)
using GraphQL API or any normal Rest API?
Thank you

Related

Pass Data From Shopify App To The Shopify Front-End

I am starting to create my first app using PHP laravel and osiset.
I have created a partner account and created an app as well. I have integrated the library also. Done with app installation and authorization.
Now I am stuck for the next step. I don't understand how can I link my code and settings implemented on my app to Shopify frontend. How can I link the app database to Shopify website?
I save all the customized data in the app and how can I link that data with Shopify website?
I am able to make a standalone app with PHP but don't understand how its data can be linked to Shopify website. How my app database can be used in shopify website?
I am new here. Any help is very much appreciated.
Thanks
You have two main choices in 2022.
App Proxy
Theme App Extension
Also, Post-Purchase extensions, for checkout stuff, but I digress. You should have no trouble injecting your special content using #1 or #2.

How to display data in Shopify Store from external API using app proxy

My goal is to display data retrieved from a 3rd party (external) API that requires authentication in my Liquid Shopify theme.
I'm looking to access product options data from the Hulk Product Options API, which requires authentication, as documented here: https://productoption.hulkapps.com/api-docs/index.html
My goal would be to send a get request and retrieve data from the Hulk Product Options endpoint.
I've read that an App Proxy is what I need to set up, however I am new to the Shopify app world and am totally lost at how to set this up.
What I've done:
Followed the steps here to create an app and install it on a development store that I created through my partners dashboard.
Went to the partners dashboard, clicked "Apps" and found the app proxy section.
Questions:
What do I put in those fields? I can't find examples for filling out that section with info from an external API.
What code in which file do I need to add to the node app that was generated using shopify node create. Or is this app just necessary to be able to fill out the app proxy info?
What url can I send a GET request to using AJAX / JS in my liquid theme code?
I'm a theme developer new to app development and have never created an app, so if you can provide basic and specific instructions (code would be wonderful!) for someone who knows front-end and is competent but is lost in the app world it's much appreciated. I've asked other theme developers who also have also tried and not been able to figure this out, so there seems to be a gap in the tutorials and resources provided.
Thanks in advance!

How to render shopify app content to shopify store?

I am using Shopify default theme Debut and i want to integrate the ajax filter for products filter like this (AjaxFilter) without using any paid app. I am creating own public app and its working fine. I also fetch the list of products of app and also created the script tag.
App Created successfully and render products
Script tag created successfully and able to render the hard-code text on Shopify store.
But now point is this i want to render the product listing from app to store theme.
I go through the all tutorial and document of Shopify did not found any suitable solution.
I also try the proxy but did not work.
Create Ajax script in shopify theme frontend using script js and call your app server product list method. in your app server use GraphQL Shopify api for fetch products list Or Shopify rest admin api.
Shopify GraphQl:https://shopify.dev/docs/admin-api/graphql/examples/product
Shopify Rest Admin Api:https://shopify.dev/docs/admin-api/rest/reference/products

How to get Shopify API programmatically

I'm building a React Native app with Shopify integration issues.
After creating a private app in the Shopify admin panel, I need help getting the Shopify API programmatically.
You will need the Shopify API URL (enter image description hereExample URL in the screenshot) to receive your shopify product.
To create an API URL, shopify users need to add an API key and API password and hostname manually on the React Native app.
I have done this feature, but it is very inconvenient for users.
That's why I need to get the API URL programmatically after the user logs into Shopify with email and password in WebView.
I thought I could get the API URL by web scraping after the user login Shopify.
Is it possible? Please help if possible.
Regards.
It is as simple as using your shop name in the URL, such as shopname.myshopify.com. But the best thing you can do is click the copy button on the Example URL field and use the full example URL so you know there are no errors.
Unfortunately, Shopify obscures this field because the apikey and password are so long. When you look at the field, it isn't clear they provided you with a complete and working URL.
Good luck

How to integrate vLine Video Chat in MVC4 application?

How to integrate vLine Video Chat in MVC4 application?
https://vline.com/developer/docs/support
We don't have an example for an MVC4 application, but if you take a look at our examples for other languages, you should be able to get an idea of how to do it.
Basically, you need to generate an authToken for your authenticated user and inject that as a JavaScript variable in the page that is displayed to the user. Your JavaScript in the page then uses the vLine API to log in to our cloud and make calls.
For example, here's the page from the node example that shows a call button for other logged-in users. Note that jwt and serviceId are enclosed in `<%= %>'; those are the values that are generated on the server and replaced before serving the page to the user.