401 error on Java
opened this issue · comments
I am usingjava to make a notes program and using parse.com to get the least version but i get an IO exception 401 error main code:
try{
URL url = new URL("https://fkXV1yotXn5Wsqim34gDNvfyEMLQ1NKo4vjV0VAX:javascript-key=Xc5LRms9bxJZ199od9AK0oaybpFy2lxjJASJgt9A@api.parse.com/1/classes/NicksNoteVersion/xngGDAa1k3");
JSONTokener tokener = new JSONTokener(url.openStream());
JSONObject json = new JSONObject(tokener);
}catch(Exception e){
e.printStackTrace();
System.out.println("Version retrieval failed");
}