I want to get my current session id and Access token in salesforce , Im using curl with php how to I get,
i Dont know how to get it ,,,
if anyone Knows tell me
Thanks ,
Ganesh
I want to get my current session id and Access token in salesforce , Im using curl with php how to I get,
i Dont know how to get it ,,,
if anyone Knows tell me
Thanks ,
Ganesh
Best Answer
The easiest way to accomplish that would be with the REST API using SessionID Authorization (as opposed to Oauth).
To do this, first you need to create a "Connected App" in your salesforce instance. You can do that here: https://login.salesforce.com/app/mgmt/forceconnectedapps/forceAppEdit.apexp.
Then once you've got your connected app setup, you'll want to copy the consumer_key and consumer_secret that Salesforce generates for you and use it in the following curl command:
If all goes well, you'll get back a response that looks something like this:
where "access_token" is your sessionId
You can find more information here under the heading "Session ID Authorization": http://www.salesforce.com/us/developer/docs/api_rest/Content/quickstart_oauth.htm