You need to sign in to do that
Don't have an account?
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());
}
}