+ Start a Discussion
VidhiVidhi 

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());
    }
Sonam_SFDCSonam_SFDC
Hi Vidhi,

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. 
Anupama PundhirAnupama Pundhir
hi Sonam,

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