Eventi
Last updated
Was this helpful?
Last updated
Was this helpful?
I Dispositivi inviano eventi al Cloud ogni volta che si connettono e ogni volta che viene chiamato Trackle.publish()
. E' possibile ricevere gli eventi dei dispositivi attraverso una tecnologia che sfrutta un flusso di dati HTTP chiamata .
GET
https://api.trackle.io/v1/events/[:eventName]
Open a stream of Server Sent Events for all public events.
eventPrefix
string
Filters the stream to only events starting with the specified prefix. Omit to get all events.
GET
https://api.trackle.io/v1/devices/events/[:eventName]
Open a stream of Server Sent Events for all public and private events for your devices.
eventPrefix
string
Filters the stream to only events starting with the specified prefix. Omit to get all events.
GET
https://api.trackle.io/v1/devices/:deviceID/events/[:eventName]
Open a stream of Server Sent Events for all public and private events for the specified device.
deviceID
string
Device ID
eventPrefix
string
Filters the stream to only events starting with the specified prefix. Omit to get all events.
GET
https://api.trackle.io/v1/products/:productIdOrSlug/devices/events/[:eventName]
Open a stream of Server Sent Events for all public and private events for a product.
productIdOrSlug
string
Product ID or Slug
eventPrefix
string
Filters the stream to only events starting with the specified prefix. Omit to get all events
GET
https://api.trackle.io/v1/products/:productIdOrSlug/devices/:deviceID/events/[:eventName]
Open a stream of Server Sent Events scoped to a particular device in a product
productIdOrSlug
string
Product ID or Slug
deviceID
string
Device ID
eventPrefix
string
Filters the stream to only events starting with the specified prefix. Omit to get all events
POST
https://api.trackle.io/v1/devices/events
Publish an event to your devices stream.
name
string
Event name
data
string
Event data. Limited to a maximum of 622 bytes
private
boolean
Private or public
POST
https://api.trackle.io/v1/products/:productIdOrSlug/events
Publish an event that is sent to the product's event stream.
productIdOrSlug
string
Product ID or Slug
name
string
Event name
data
string
Event data. Limited to a maximum of 622 bytes
private
boolean
Private or public