Access to events using external REST calls

I can go to https://graph.api.smartthings.com/hub/ and get access to my hub and “Events” with drill down details.

I can also go to https://graph.api.smartthings.com/device/list => Person => and get information about Presense events.

If I wanted to access this information externally to a SmartThings smart app - if I wanted to use a REST call from my PC to gather that data, then dump it to a file or database and run statistics on it and such.

Is that possible? Can external REST calls access my hub information through the web?

Thanks,

Carl

Hey Carl, check out our Web Services docs:

http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/implementation.html

Also, I wrote a simpler RESTful switch SmartApp here: https://gist.github.com/mager/55df8d0ce89e44c76ab5

I used the tutorial in the previous link to write that SmartApp. You can get the status of a switch with a GET request, and update a switch with a PUT request, for example.

Hope these links are helpful. Let me know if you have any more questions!

1 Like