Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Adam Harrison commented on Implementing shopify API in JAVA - Returning response status of 401

$
0
0

Your GET looks right off the bat. But I need to know exactly what you're throwing across the socket to the server; your full HTTP Request (it should have headers and stuff, identifying your user agent, what you accept, etc..). You look like you're adding in the accept: application/json header, so that's good, but there could be some stuff that you're missing. 

Here's what I'm sending with a straight call to my API:

GET https://apikey:password@armstrong-morar5254.myshopify.com/admin/collects/count.json
Accept: application/json
User-Agent: libwww-perl/6.05

 

Seems like that's all you need; works fine for me. It's possible if your library is adding in extra stuff, you may get a different response. Shopify tends to break easily.

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>