Rest Post - How to

Rest Post - How to

  

How do I create a equivalent post in OutSystems

curl -X POST "https://api.clarifai.com/v1/token/" \  -d "client_id={client_id}" \  -d "client_secret={client_secret}" \  -d "grant_type=client_credentials"

I tried the following


But getting error.

More details about the APi: https://developer.clarifai.com/guide/#authentication


As far as I can see, there's nothing wrong with the way that you've done it in OutSystems. I'm supposing that your the request with curl succeed... 

Hi Shawn, have you tried passing the parameters in the query string?


Something like changing the URL you are consuming to https://api.clarifai.com/v1/token?client_id={client_id}&client_secret={client_secret}&grant_type={grant_type} or just https://api.clarifai.com/v1/token?client_id={client_id}&client_secret={client_secret}&grant_type=client_credentials should do it.