server returned http response code 401 for url when using shopify api

New Member
7 0 0

Hi I am trying to get the orders programatically using Java HTTPUrlConnection class, but I am getting 401 un authorised error. Is this because I embedded api key and password in the url itself? I posted here the code. Please have a look