You need to sign in to do that
Don't have an account?
Grainne Ryan
Problem accessing API with access token
I know that this question has been asked a lot but none of the proposed solutions helped me.
When I try to access salesforce with the access token I get an error
"The REST API is not enabled for this organization" "API_DISABLED_FOR_ORG"
I have a developer's edition trial and API is enabled.
I got an access token through curl using "grant_type=password" and then tried to access Salesforce like this:
curl -v https://eu6.salesforce.com/services/data/v20.0 -H "Authorization: Bearer <access_token>"
Is this not correct or is there something else I should do?
Any help would be greatly appreciated.
Thank you
When I try to access salesforce with the access token I get an error
"The REST API is not enabled for this organization" "API_DISABLED_FOR_ORG"
I have a developer's edition trial and API is enabled.
I got an access token through curl using "grant_type=password" and then tried to access Salesforce like this:
curl -v https://eu6.salesforce.com/services/data/v20.0 -H "Authorization: Bearer <access_token>"
Is this not correct or is there something else I should do?
Any help would be greatly appreciated.
Thank you
Try Workbench (https://developer.salesforce.com/page/Workbench)for a start.
You mention have a "developer edition trial" org. That sounds a bit odd. What does it say next to "Organization Edition" if you go Setup > Administration Setup > Company Profile > Company Information (or just search for Company Information under Setup)?
Also I just have the Developer Edition
1) http://amitsalesforce.blogspot.in/2016/05/access-token-generation-oauth-20.html
Give it a try.
curl https://eu6.salesforce.com/services/data/v20.0 -H "Authorization: Bearer <access_token>" -H "X-PrettyPrint:1"
Peace.
Thanks, but I have tried that several times already, each time the error is "The REST API is not enabled for this organization" "API_DISABLED_FOR_ORG"