I’m having a bit of trouble getting started with the API. I’m trying a token via OAuth2 and have tried from the terminal on my Mac and from the RESTClient add-on in Firefox. I’ve generated keys in production and our sandbox and no matter what I’ve tried, I get the same response:
{"error_description":"Invalid client authentication","error":"invalid_client"}
Example code from the API Docs that I’m also using from my MAC
curl -X POST https://api2-us-west-2.insided.com/oauth2/token
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'grant_type=client_credentials'
-d 'client_id=<myID>'
-d 'client_secret=<mySecret>'
-d 'scope=read'
I’m sure I’m missing something simple, but I’m hopeful someone can give me some pointers.