Closed antero10 closed 3 years ago
Hey,
I think I have a similar issue.
I get undefined
response for all resource requests.
this.api = new Shopify({
shopName: account.myshopify_domain,
accessToken: account.token
})
...
const shopRes = await this.api.shop.get() // shopRes = undefined
Making the requests using the rest API with the same credentials works.
https://{account.myshopify_domain}/admin/api/2020-04/shop.json
X-Shopify-Access-Token: {account.token}
@antero10 This works for me:
new Shopify({ shopName: 'YOUR_SHOP_NAME', accessToken: 'YOUR_PASSWORD' });
Hey,
I think I have a similar issue. I get
undefined
response for all resource requests.this.api = new Shopify({ shopName: account.myshopify_domain, accessToken: account.token }) ... const shopRes = await this.api.shop.get() // shopRes = undefined
Making the requests using the rest API with the same credentials works.
https://{account.myshopify_domain}/admin/api/2020-04/shop.json
X-Shopify-Access-Token: {account.token}
Solved my issue, it was related to CORS.
Hi,
I've been trying to get products using private app Admin API credentials, like this
and i'm trying to get the list of products like this
However, my result it's undefined and not sure why i'm getting that result. Can anyone help me with this?