Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // send the request
  2. HttpResponse oResponse = http.send(oRequest); // Exception line
  3.  
  4. if(oResponse.getStatusCode() == 200){ system.debug('statusCode'+oResponse.getStatusCode());
  5.  
  6. Map<String,Object> result = (Map<String,Object>)JSON.deserializeUntyped(oResponse.getBody());
  7.  
  8. updateCurrentConfiguration(String.ValueOf(result.get('access_token')),
  9. Integer.valueOf(result.get('expires_in')), oConfiguration.Id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement