1

Is there a way to use only access token to login via api?

$mylogin = $mySforceConnection->login("...", "...");
1

You can use an access token to authenticate API calls, but the client library you're using must support passing the access token in the HTTP Authentication header. Here's an example from the Python simple-salesforce library: https://github.com/heroku/simple-salesforce/blob/master/simple_salesforce/api.py#L114

That works for the REST based API's. For the Metadata API (or I think other SOAP API's), the access token is set in the SOAP envelope. Here's an example: https://github.com/SalesforceFoundation/mrbelvedere/blob/master/mpinstaller/mdapi.py#L34

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.