• Jayaprakash Narayan Thatiparthi
  • NEWBIE
  • 0 Points
  • Member since 2015


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

HI,

 

How do we post an action(https://developers.jivesoftware.com/api/v3/rest/ActionEntity.html) from salesforce to JIVE?  Here is APEX class that I have so far:

 

public class CALLOUTREST{

    

    @future(callout = true)

      public static void basic1AuthCallout(){

 

        HttpRequest req = new HttpRequest();

        req.setEndpoint(URL);

        req.setMethod('GET');

        

        // Specify the required user name and password to access the endpoint

        // As well as the header and header information

        

        String username = USERNAME;

        String password = PW;

        

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

        String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);

        req.setHeader('Authorization', authorizationHeader);

        

        // Create a new http object to send the request object

        // A response object is generated as a result of the request  

        

        Http http = new Http();

        HTTPResponse res = http.send(req);

        System.debug(res.getBody());

        

    }

}

 

  • November 02, 2013
  • Like
  • 1

Hi all,

 

I installed the Force.com for Amazon Web Services app into my Developer org and set up my S3 credentials, carefully following the instructions on this page:

http://wiki.developerforce.com/page/Installing_Force_for_Amazon_Web_Services

 

However, I consistently get this message, e.g. when I click on the "S3 Samples" tab:

 

Web service callout failed: WebService returned a SOAP Fault: Access Denied faultcode=soapenv:Client.AccessDenied faultactor=

 

Is there something I have missed in the setup that would cause this error?

 

 

thanks!

 

Matt