Trying to access my photon with cloud API

Hi,

As a start to getting in to using the cloud API I’m trying to get my photon device information using this:

https://api.spark.io/v1/devices/000000000000000000000000/?access_token=4444444444444444444444444444444444444

via a chrome extension called ‘Postman’ that allows me to use POST.

My device ID= zeros
My access token = fours
I got these from the ‘settings’ and ‘devices’ tabs at my https://build.particle.io.

I get this:

{
  "ok": false,
  "error": "Not Found",
  "device_name": "turtle hoosier station raptor ninja"
}

Can anyone tell me what I’m doing wrong? Is it because I’m not using ‘curl’? As I’m aware I just need something that has post functionality…

Thanks in advance.

With POST you want to trigger a function I guess.
So you’d need to alter your address like this

https://api.spark.io/v1/devices/000000000000000000000000/<functionName>

Set the content type to x-www-form-urlencoded

and add your access_token and data fields in the key-value-pairs.