I am trying to run the following SOQL query using POSTMAN but i am getting the following error. I have used the access token in the following statement.
SOQL Query:
https://ap1.salesforce.com/services/data/v29.0/query/?q=SELECT+Id+from+Account -H "Authorization:Bearer 00D90000000rBwy! ARIAQB2opHNgIk3xbxx83k3letsZYb8siO2slRTDQAhlFsUV1ov_nkKOdxapsHkj8RYF5ZqRG7q1eGCynmdIqNAVdKwFNXDM"
Error:
[ { "message": "Session expired or invalid", "errorCode": "INVALID_SESSION_ID" } ]
I have the access token which i generated in the same session and used the same tab in Google Chrome.
But if i use the headers and specify the access token and content type in the headers then it worked correctly. Could someone please advice what is the issue in the first approach that is specifying the access token in the URL itself? Thanks.