How to Identify the Access token of my device

How to Identify the Access token of my device

COMPLEMENTARY API CALL
POST /v1/devices/{DEVICE_ID}/{FUNCTION}

EXAMPLE REQUEST

curl https://api.particle.io/v1/devices/0123456789abcdef/brew
-d access_token=123412341234
-d “args=coffee”

in what way I can use this link in my browser

The accesstoken for your account can be found in the Web IDE: https://docs.particle.io/tutorials/developer-tools/build/photon/#account-information

You can type that into the URL bar, since it's a POST request, and the browser makes GET request. You can call those functions with a bit of javascript though. Alternatively, in the console you can see/call all your functions and variables.

Have a look at this tutorial (but make sure to read up on the docs so you can replace the aged commands for the current ones)

1 Like