I'm new to Force.com and am working thru the REST API Dev Guide.
I've created a dev. edition org and am able to authenticate via both cURL and Postman on a Mac.
I use the auth token from the auth call in the call below:
curl https://na17.salesforce.com/services/data/v31.0/ -H 'Authorization: Bearer 00Do0000000bkyb!AQwAQImpiwZqzCPymjJmqXIMPrpfUHbgWB77l1Z79T0hC2pRfBmQ0SeDkFB3vdFCDr_xxxxxxxxxxxxxxxxxxxxxxxx'
Where "na17" is from the instance URL and the xxxxxxxxxxx was added just for this post.
And I get:
[{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]
I'm expecting so sort of newbie issue here and would appreciate an insight on what the issue may be.
Thanks