I am using Java and trying to retrieve Call Log Records. trying to get a token for the call
Unirest.post(AuthURL);
rs.header("accept", "application/json");
rs.header("Content-Type", "application/x-www-form-urlencoded");
rs.header("Authorization", "Basic "+ClientId+ClientSecret );
parameters :
Map<String,Object> m = new HashMap<String,Object>();
m.put("grant_type", "password");
m.put("username", xxxxxx);
m.put("extension", "xxx");
m.put("password", xxxxxx);
when executed get { "errorCode" : "TokenInvalid", "message" : "Invalid token", "errors" : [ { "errorCode" : "OAU-149", "message" : "Invalid token" } ] }
Can anyone tell me the correct syntext to use for the authorization?
application https://platform.devtest.ringcentral.com/
settings as above. using the "try it" apps all works .