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
AaranAaran 

Salesforce integration to JIVE

Hi,

 

I'm trying to get Salesforce to sync up with another system called Jive and make REST API call using APEX.   Can somebody help me to write a code that could update the status or do something in JIVE environment after get body? How do I fetch the person id or objects from jive?  what should i do next?

 

public class AuthCallout {

 

   public void basicAuthCallout(){

     HttpRequest req = new HttpRequest();

     req.setEndpoint('URL');

     req.setMethod('GET');

 

     String username = 'myname';

     String password = 'mypwd';

  

     Blob headerValue = Blob.valueOf(username + ':' + password);

     String authorizationHeader = 'BASIC ' +

     EncodingUtil.base64Encode(headerValue);

     req.setHeader('Authorization', authorizationHeader);

  

     Http http = new Http();

     HTTPResponse res = http.send(req);

     System.debug(res.getBody());

   }

}