sxganapa
(Sudhakar)
December 28, 2015, 7:00pm
1
When I use the url
https://graph.api.smartthings.com/api/hubs/#id# gets all the events regarding the Device only. But to get the HUB events what url should I use?
Not sure if this is still the case, but I have this in my notes from about 6 months ago
Hub EventsGet the last few (currently 10) events for a hub.
https://graph.api.smartthings.com/api/hubs/idHashString/events
Params
all=<boolean>
max=<number>
source=<boolean>
Note: The response looks just like the account events endpoint response.
Here’s where I got this from. It was last updated in 2013 so it may be out of date
# SmartThings Unofficial Documentation
Many of the endpoints (and parameters for them) documented below were discovered via trial and error methods. However, a more complete list of endpoints can be found in this [Titanium project here.](https://github.com/alanleard/ti.smart/blob/master/src/lib/smart.js) However, it should be noted that not all of those seem to work. The endpoints documented here have been tested. No promises things won't change and it should be expected that they will.
## Projects
Projects allow you to setup a community around what you're building for SmartThings. You are given the ability to setup blogs, galleries, and more.
You first need an account on [http://build.smartthings.com](http://build.smartthings.com) which is different than your account for using your device (which is used with http://graph.api.smarthings.com). Then you can go to create a project at the following URL: [http://build.smartthings.com/projects/create/](http://build.smartthings.com/projects/create/)
## SmartApps
SmartApps are the actual applications/widgets which users can install to the SmartThings mobile application. They use OAuth to authenticate and allow access to the API. This allows an end-user to individually disable/control access for any SmartApp. If you're familiar with Facebook apps - this is very similar.
You can create smart apps here: [https://graph.api.smartthings.com/ide/apps](https://graph.api.smartthings.com/ide/apps)
*Note: You may not have access to this section if you are not registered as a developer.*
## JSON API Endpoints
First off, you need to be logged into http://graph.api.smarthings.com … Which is simple enough. You can then go on to see a list of your hubs and events, among other things, in their dashboard. However, we're after JSON responses and all of hte data you see here is available in (seemingly open) JSON responses.
This file has been truncated. show original
sxganapa
(Sudhakar)
December 28, 2015, 7:44pm
3
The event sources for that url is
"eventSource":“DEVICE”
I want the evenSource for HUB.