I am using parse.com for the first time and want to access its Rest-API to update the class in parse data which contains data in form of object of that class.I am not able to do the authentication using App_id and API_id given by parse.com to access the specific class of that app.I have tried HttpUrlconnection and Urlconnection but problem is only authentication using App_id and API_id. Please help me out i have goggled a lot but did not got any way out.Thanks in advance. This is the main method:
`String APPID = "my app id";
String RESTID = "my api id";
String Content_Type = "application/json";
String ENDPOINT = "https://api.parse.com/1/classes/TestObject";
//Create connection
URL url = new URL(ENDPOINT);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
try {
connection.setRequestMethod("GET");
} catch (ProtocolException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
connection.setRequestProperty("X-Parse-Application-Id",APPID);
connection.setRequestProperty("X-Parse-REST-API-Key",RESTID);
connection.setRequestProperty("Content-Type",Content_Type);`