App reviews, troubleshooting, and recommendations
Is it possible to call store front API when my store is in development?
This is my query:
url = f'https://{self.STORE_NAME}.myshopify.com/admin/api/2024-01/graphql.json'
query = '''{
products(first: 3,after: null) {
pageInfo {
endCursor
startCursor
}
edges {
node {
id
title
variants(first: 250) {
edges {
node {
id
title
availableForSale
}
}
}
}
}
}
}
'''
headers = {
'X-Shopify-Storefront-Access-Token': self.STORE_TOKEN,
'Content-Type': 'application/graphql',
}
response = requests.post(url, data=query, headers=headers)
It return this error:
{"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"}
I triple check the access tokens, I try the public and the private, check all scope permissions, but it not work.
Solved! Go to the solution
This is an accepted solution.
This is an accepted solution.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024