Shopify / mobile-buy-android-sample

MIT License
17 stars 14 forks source link

Connecting to older API #13

Open balusreekanth opened 3 years ago

balusreekanth commented 3 years ago

Using 201-07 API . Changed shop.properties with domain, storefront key . But sample app is connecting older API always . Tried removing cache , rebuilt the app and also tried Network_ONLY cache mode . But still can not connect to Rebuild app . Error is

D/OkHttp: <-- 403 https://mydom.myshopify.com/api/2020-04/graphql

Can someone suggest me a fix .

GaneshShetty951 commented 2 years ago

@balusreekanth Have you found any solution for this ??

devsideal commented 2 years ago

I'm also getting the same issue any solution?

403  https://abhishek-718.myshopify.com/api/2020-04/graphql
Failed to fetch shop settings
    com.shopify.buy3.GraphError$HttpError: HTTP(403) 
devsideal commented 2 years ago

I Fix this problem for me, actually, this was because of confusion between API_KEY and Access_Tocken problem for me I was using API_KEY instead of Access_Tocken, because in the sample they are asking for api_key, But after using the access token it fix my issue, I follow the below steps to create the access token for Storefront API https://help.shopify.com/en/manual/apps/private-apps