Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // send the request
- HttpResponse oResponse = http.send(oRequest); // Exception line
- if(oResponse.getStatusCode() == 200){ system.debug('statusCode'+oResponse.getStatusCode());
- Map<String,Object> result = (Map<String,Object>)JSON.deserializeUntyped(oResponse.getBody());
- updateCurrentConfiguration(String.ValueOf(result.get('access_token')),
- Integer.valueOf(result.get('expires_in')), oConfiguration.Id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement