I am trying to turn my Smartthings access token into a client ID and secret.
I got my token from https://account.smartthings.com/tokens.
I am trying to use a curl command, similar to Particle IO, to turn my token into the client id/secret I need.
Does anyone know how to do this?
The link in the curl command below is my problem. The Particle IO client site is https://api.particle.io/v1/clients (“access token URL”). This site works for turning a Particle IO access token into the client id/secret. However, when I try with Smartthings (https://api.smartthings.com/v1/clients), it gives me an error.
What is the correct URL for Smartthings (“access token URL”) to get this all working?
Below is the curl command I use to turn an access token into the cliend id/secret:
curl https://api.smartthings.com/v1/clients -d name=Tek -d type=web -d access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -d redirect_uri=https://pitangui.amazon.com/api/skill/link/M2JG8VGTIBNOSK