• rohit kumar
  • 19 Points
  • Member since 2016

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
  • 4
I am new and I want to access salesforce API and test end points to get/post customers , leads and products......

I am writing an integration module with an e-commerce platform..  But I couldnt find any human readable doc for your rest and soap api's...

PS: - I am more comfortable with postman then workbench
Hi All,

I wanted to get user info detail by using the salesforce OAuth  Apex Callout . I have the access token in my previous step.  Now I am setting the end point url with oauth_token parameter as below:
HttpRequest request = new HttpRequest();
 String endpoint = 'https://login.salesforce.com/services/oauth2/userinfo?oauth_token='+accessToken;
 HttpResponse response = new Http().send(request);

I am getting the response  body as :Missing_OAuth_Token "System.HttpResponse[Status=Forbidden, StatusCode=403]".
referred documentation: https://help.salesforce.com/articleView?id=remoteaccess_using_userinfo_endpoint.htm&type=0

Please help.
​Thanks in Advance!!!
  • December 11, 2017
  • Like
  • 1
Completed Step 2, Provision the Heroku Connect add-on. Filled out Phone Number changer form, and record successfully updated in my dev org. However, when I went to verify the step, got this error:
Step Not yet complete... here's what's wrong: 
The 'Tim Barr' contact record was not updated correctly in Salesforce. Please check your Heroku Connect setup. 
Note: you may run into errors if you've skipped previous steps.

Please advise. Thanks!

Hi All,

    i wrote this class for integration of Mailchimp with salesforce using apis


public class MailchimpOauth{public void invokeExternalWs(){Http h = new Http();   HttpRequest req = new HttpRequest();               //req.setHeader('Host','https://oauth.constantcontact.com/ws/oauth/request_token');      req.setBody('https://login.mailchimp.com/oauth2/authorize');   req.setBody('https://login.mailchimp.com/oauth2/token');   req.setBody('https://login.mailchimp.com/oauth2/');   req.setBody('https://login.mailchimp.com/oauth2/metadata');
    req.setHeader('Connection','keep-alive');    req.setHeader('Content-Type', 'application/atom+xml');    req.setMethod('POST');    req.setEndpoint('https://login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=957533735502&redirect_uri=http://localhost/oauth/complete.php');

     HttpResponse res = h.send(req);      system.debug(res.getbody());


But i got a response like  Status=Bad Request, StatusCode=400 &&&&&error=invalid_client_id&error_description=client%20identifier%20invalid.How to fix this.

any one can u please rectify this.can u give me the solution for fixing that.calient id given in that one is valid.But i dont know how the response coming like this.


Thanks in advance.



  • September 27, 2011
  • Like
  • 0

I am following the guidelines from the Chatter guide and somehow I can't get the OAuth to work. 


It's not working from Java or curl.   Here is what I am doing:


mike$ curl --form client_id=3MVG9yZ.WNe6bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxu5AjB4oT9kxi8SEhY --form client_secret=26542xxxxxxxxxxx78  --form grant_type=password --form username=xxxxxxxx@gmail.com --form password=xxxxxxx https://na11.salesforce.com/services/oauth2/token


What I am getting is:

{"error":"invalid_grant","error_description":"authentication failure - Invalid Password"}


I double checked and I am getting into na11 with the right password.  Is there anything else I need to do?


Here are the settings in my remote access:



Callback URLhttps://na11.salesforce.com/ConnectTest/oauth/_callback /// temp one

No user approval required for users in this organizationNot Checked


Does Pardot offers, login with Salesforce developer credentials? 
Is there any Pardot developer edition, to work as a Developer (like in Salesforce)?