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?

2 Answers 2

1

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.

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

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

https://help.salesforce.com/articleView?id=remoteaccess_oauth_jwt_flow.htm&type=5

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .