You need to sign in to do that
Don't have an account?
Calling REST service from internal server
In my company we are creating an integration between Salesforce and our Product system. We are using the APEX REST to communicate between our system to Salesforce.
I’ve built the integration using a recipe I’ve found in Force.com Cookbook (“Interact with the Force.com REST API from PHP” à http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php), however the flow implemented in this recipe requires the user to log in to Salesforce.
The integration I’ve built is a server-to-server integration, what is the best-practice of building a server-to-server REST integration?
I’ve found an article in Stack Overflow that mentioned logging-in using SOAP and then calling REST services using the SOAP session-Id, but it seems like hacking to me, can you please point me to the right direction?
Thank you,
Roy
I have found this article in Salesforce doc:
http://wiki.developerforce.com/index.php/Digging_Deeper_into_OAuth_2.0_on_Force.com#Obtaining_a_Token_in_an_Autonomous_Client_.28Username-Password_Flow.29
I think this will provide me the answer I seek.