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
College ManagementCollege Management 

JSON Html reponse while integrating salesforce to quickbook.

Hi, I am trying to integrate salesforce to quickbook , while executing the class i am getting STATUS : OK STATUS_CODE : 200 , Expected JSON response but i am getting html as a response.

        HttpRequest req = new HttpRequest();
        req.setMethod('POST');
        req.setEndpoint(loginUri);
        req.setBody("Here i am passing some arguments");
        req.setHeader('Accept', 'application/json;charset=UTF-8');
        Http http = new Http();
        HTTPResponse res = http.send(req);
        System.debug('RESPONSEEEEEEEEEEEEEEEEEEe'+res.getBody());

Thanks !