You need to sign in to do that
Don't have an account?
Vidhi
Xero Intregration
public void completeAuthorization() {
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setMethod('POST');
req.setEndpoint('https://api.xero.com/oauth/AccessToken');
req.setBody('');
//req.setHeader('Content-Type','text/html');
sign(req);
HttpResponse res = null;
res = new HttpResponse();
res = h.send(req);
System.debug('Response from request token request: ('+res.getStatusCode()+')'+res.getBody());
}
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setMethod('POST');
req.setEndpoint('https://api.xero.com/oauth/AccessToken');
req.setBody('');
//req.setHeader('Content-Type','text/html');
sign(req);
HttpResponse res = null;
res = new HttpResponse();
res = h.send(req);
System.debug('Response from request token request: ('+res.getStatusCode()+')'+res.getBody());
}
Are you facing any issues with the above code you have shared - if yes, please mention the error together with your use case.
If you are trying to share a solution- please mark it such that the community members can benefit from it.
I am not facing any issue till here.but i am not able to get a access token here.If you have a solotion than please share