We use salesforce in our website. I'm new to it, and still can't find a way to calls REST api to our own account without going long way of visiting oauth login page, granting access etc(oauth flow).

For example with twitter I just need consumer_key and consumer_secret to update status in my own account.

Is there same way to work with salesforce?


You either have to use one of the oAuth flows: https://developer.salesforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com

One of which is the username / password flow where you could use an integration user.

Or develop your own custom RESTRESOURCE


Which you can design to not required any authentication. However, this way requires you do design the rest api yourself.

| improve this answer | |
  • used username/password flow, did not find another solution – sfasker Aug 5 '14 at 15:00

You can use the JWT Bearer Flow, which will give you the power to interact with SFDC in a headless (without browser) environment.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.