You need to sign in to do that
Don't have an account?
Mohamed Hemeda
We are getting the following error where authenticating user with curl: {"error":"unsupported_grant_type","error_description":"grant type not supported"}
We are trying to integrate salesforce api in our php code. While authenticating we are passing following data using curl
Post Parameters= Array ( [grant_type] => password [client_id] => xxxxxx[client_secrect] => xxxxx[username] => info@domain.com [password] => xxxxx)
End Points: https://login.salesforce.com/services/oauth2/token
Once we are calling then we getting the following response: {"error":"unsupported_grant_type","error_description":"grant type not supported"}
Please help us to fix this problem.
Post Parameters= Array ( [grant_type] => password [client_id] => xxxxxx[client_secrect] => xxxxx[username] => info@domain.com [password] => xxxxx)
End Points: https://login.salesforce.com/services/oauth2/token
Once we are calling then we getting the following response: {"error":"unsupported_grant_type","error_description":"grant type not supported"}
Please help us to fix this problem.
Please check below URLs:
http://salesforceprasad.blogspot.com/2017/04/how-to-test-salesforce-rest-api.html
https://sfdcbeginner.com/how-to-test-salesforce-rest-api-using-rest-client.html
Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.
Thanks
Varaprasad
@For Support: varaprasad4sfdc@gmail.com
"error": "invalid_client",
"error_description": "invalid client credentials"
} I know I have the correct information