0

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?

0

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

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_rest_code_sample_basic.htm

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

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

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.