• Mohamed Hemeda
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
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. 
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.