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

integration help salesforce & aweber


      I want to integrate salesforce & Aweber. I have sample Aweber account. I am getting bad error, 400  in my system log

passing url's, you can find here.

Please give me suggestions regarding connection between both accounts




public class Aweberoauth
public void invokeExternalWs()
Http h = new Http();
   HttpRequest req = new HttpRequest();
        final string username = 'aweber provided some keys as consumer'; 
        Blob headerValue = Blob.valueOf(username);
     String authorizationHeader = 'oauth' +EncodingUtil.base64Encode(headerValue);
    req.setHeader('Content-Type', 'application/atom+xml');
     HttpResponse res = h.send(req);