function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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