Wiki
Clone wikiNumera.LibrisAPI / event.subscribe
Home > API Reference Documentation > event.subscribe
event.subscribe
The event.subscribe
action is used to open up an http long poll channel to receive a real time feed whenever new events come in for a particular device.
Input Parameters
Property | Required | Description |
---|---|---|
imei | yes | The imei of the device you want to receive events for |
Output
The result
object represents a the information you will need to use with the channel.poll action:
Property | Description |
---|---|
token | token id |
subscription_id | subscription id, used as the channel id |
Possible Status Codes
Status Code | Reason | Description |
---|---|---|
1001 | NO_ACCESS_TO_IMEI | You need to pass in the imei or you do not have access to that device |
1002 | SUBSCRIPTION_FAILED | Could not create the subscription |
Updated