Closed seanlim1 closed 9 years ago
I dont quite understand what's going on here. My curl/api request is returning: 'Not Found' instead of json replies.
I used the following command in my cmd: curl http://[LOCAL IP:PORT]/v1/device/[SPARK ID]/[FUNCTION]?access_token=[TOKEN]
Over on the server end, it's getting : GET /v1/device/[SPARK ID]/[FUNCTION]?access_token=[TOKEN] HTTP/1.1" 404 9 "-" "curl/7.30.0"
Hope someone can enlighten me on what's going on. Thanks in advance!
I think you want /v1/devices/ instead of /v1/device/, no?
/v1/devices/
/v1/device/
oh my goodness! Yes it is. Apologies for something soo trivial.
no worries! Glad we could help! :)
I dont quite understand what's going on here. My curl/api request is returning: 'Not Found' instead of json replies.
I used the following command in my cmd: curl http://[LOCAL IP:PORT]/v1/device/[SPARK ID]/[FUNCTION]?access_token=[TOKEN]
Over on the server end, it's getting : GET /v1/device/[SPARK ID]/[FUNCTION]?access_token=[TOKEN] HTTP/1.1" 404 9 "-" "curl/7.30.0"
Hope someone can enlighten me on what's going on. Thanks in advance!