Wiki

Clone wiki

Numera.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

PropertyRequiredDescription
imeiyesThe 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:

PropertyDescription
tokentoken id
subscription_idsubscription id, used as the channel id

Possible Status Codes

Status CodeReasonDescription
1001NO_ACCESS_TO_IMEIYou need to pass in the imei or you do not have access to that device
1002SUBSCRIPTION_FAILEDCould not create the subscription

Updated