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
Related
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
I have submitted My app to Shopify App store for review, I got below feedback
I was unable to install your app from the App Store listing. I was redirected to this page after clicking 'Get'. When clicking on 'Get' from the app listing, the app should immediately authenticate using OAuth. Please watch this example of what the required installation flow looks like with OAuth when clicking 'Get' from the App Store Listing.
How can I resolve this?
Any help would be greatly appreciated.
When any one click On get button from shopify app store then you must
have to check that after getting store name it will redirect to your
link on which you have check store permissions & all other things for
shopify store. After checking permissions of store it will
automatically redirect to store OAuth page then you will able to
install app.
You can also check itself where it is redirect when any one click on GET button. Steps for checking:-
Login into shopify partner account Go to Apps-> View App Listing. Then you will check by clicking GET button where it is redirect. You have to check conditions & may also you have to set your App Url Link in app which you created in Shopify partner account.
You can also these things on Shopify Official documentation.
Please Let me know if you getting issue after try this. I am Happy to help you. Thanks !!
I'm trying to access Shopify Admin APIs through postman.
Tutorial says that
For Username and Password provide your store private API key and password respectively.
I do have the API key, however there is no password filed on my admin page? I tried finding some solutions online, however the screenshots mentioned in those solutions did contain a password filed on the admin page. My page does not have it. I only have API key & API secret key
There are two types of App in shopify, one is embeddedSDK and second one is private App. For the embeddedSDK you can you Postman, but for the private Its will not access through postman.
Thanks
There could be one of following reasons of not having password.
- You are logged in with diff. user or Not having admin access to app.
Your Store Password & Username may work in place.
- Make sure your app is in published state.
share more details in case still hanged with these buggy things.
From Using Postman - Shopify tutorial:
Once you have a Shopify store, you can quickly generate your API credentials using a private app.
You need to create a private app from your development or managed store - not in your partner account.
Click the link at the bottom of the apps page:
Working with a developer on your shop? Manage private apps
From there you can create a new private app to get your API key and password.
I have created an app in shopify and after installing it in the store, I want when I click on the app then it will redirect to other domain like www.abc.com instead of open it in the shopify admin.
I have checked this type of functionality in many apps but don't know how to implement it. Please help me to solve this issue.
Thanks
Firstly, you need to create account as Shopify partners. Once you sign-in in your account, you will see Apps on the left side of the dashboard. You will see Redirection URL in the options available. You can also give name and other details of your app in this session.
most likely your app is an embedded app that is why it is not opening new tab upon clicking from admin app listing. you first understand whether your app required embedding functionality or not.
I am trying to access the Shopify API from an external app that I am building (mobile). For example, I would like to access this API:
https://mystore.myshopify.com/admin/products.json
Of course I would need to authenticate my request first. So far everybody I asked (including Shopify support), suggested that the only way to access the data is through a Shopify App.
Can you suggest a way to do this?
I have found the answer. Follow these steps if you want to access the Shopify API from an external app:
Login to your store as an admin
Go to Apps
Create a Private App
Use the following pattern with every URL you create (I am using this to get all the orders)
https://:#.myshopify.com/admin/orders.json
The API Key and the password appear in your private app info page.