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

Private app in Java : 401 Unauthorized access error by Sales Admin

$
0
0

I created a new private app to fetch my products  like https://apikey:password@hostname/admin/products.json

I got created new apikey and password from my store.

I  am using Java client to connect to my private app. I created a new private app key. The app works perfectly fine from computer1. Now when I try to run the same program in computer 2,  keep getting error "401 Unauthorized".

 

Below is the snippet of my code.

        com.gargoylesoftware.htmlunit.Page page = webClient.getPage(" https://XXX:YYY@hostname/admin/products.json");

I can give my two computer IP details. 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



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