{"action":"created","issue":{"url":"https://api.github.com/repos/spark/spark-server/issues/41","labels_url":"https://api.github.com/repos/spark/spark-server/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/spark/spark-server/issues/41/comments","events_url":"https://api.github.com/repos/spark/spark-server/issues/41/events","html_url":"https://github.com/spark/spark-server/issues/41","id":59853953,"number":41,"title":"Unable to Call function or variable via api.","user":{"login":"seanlim1","id":9212876,"avatar_url":"https://avatars.githubusercontent.com/u/9212876?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlim1","html_url":"https://github.com/seanlim1","followers_url":"https://api.github.com/users/seanlim1/followers","following_url":"https://api.github.com/users/seanlim1/following{/other_user}","gists_url":"https://api.github.com/users/seanlim1/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlim1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlim1/subscriptions","organizations_url":"https://api.github.com/users/seanlim1/orgs","repos_url":"https://api.github.com/users/seanlim1/repos","events_url":"https://api.github.com/users/seanlim1/events{/privacy}","received_events_url":"https://api.github.com/users/seanlim1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T20:08:11Z","updated_at":"2015-03-04T20:19:42Z","closed_at":null,"body":"I dont quite understand what's going on here. My curl/api request is returning:\r\n'Not Found' instead of json replies.\r\n\r\nI used the following command in my cmd:\r\ncurl http://[LOCAL IP:PORT]/v1/device/[SPARK ID]/[FUNCTION]?access_token=[TOKEN]\r\n\r\nOver on the server end, it's getting :\r\nGET /v1/device/[SPARK ID]/[FUNCTION]?access_token=[TOKEN] HTTP/1.1\" 404 9 \"-\" \"curl/7.30.0\"\r\n\r\nHope someone can enlighten me on what's going on. Thanks in advance!"},"comment":{"url":"https://api.github.com/repos/spark/spark-server/issues/comments/77238527","html_url":"https://github.com/spark/spark-server/issues/41#issuecomment-77238527","issue_url":"https://api.github.com/repos/spark/spark-server/issues/41","id":77238527,"user":{"login":"dmiddlecamp","id":833793,"avatar_url":"https://avatars.githubusercontent.com/u/833793?v=3","gravatar_id":"","url":"https://api.github.com/users/dmiddlecamp","html_url":"https://github.com/dmiddlecamp","followers_url":"https://api.github.com/users/dmiddlecamp/followers","following_url":"https://api.github.com/users/dmiddlecamp/following{/other_user}","gists_url":"https://api.github.com/users/dmiddlecamp/gists{/gist_id}","starred_url":"https://api.github.com/users/dmiddlecamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmiddlecamp/subscriptions","organizations_url":"https://api.github.com/users/dmiddlecamp/orgs","repos_url":"https://api.github.com/users/dmiddlecamp/repos","events_url":"https://api.github.com/users/dmiddlecamp/events{/privacy}","received_events_url":"https://api.github.com/users/dmiddlecamp/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T20:19:42Z","updated_at":"2015-03-04T20:19:42Z","body":"I think you want `/v1/devices/` instead of `/v1/device/`, no?"}}