+ 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.setBody("Here i am passing some arguments");
        req.setHeader('Accept', 'application/json;charset=UTF-8');
        Http http = new Http();
        HTTPResponse res = http.send(req);

Thanks !