The subscribeToEngagementServices() function takes sid, appId, ufid, osType, deviceId and deviceName as input parameters to create a new subscriber.
You can use the below sample code snippet to subscribe a device to Engagement Services using Iris.
Unsubscribing a Device
The unsubscribeFromEngagementServices() function takes ksid of a device as an input parameter to unsubscribe a device.
You can use the below sample code snippet to unsubscribe a device from Engagement Server using Iris.
Creating a User with KSID
The createUserForDevice() function takes firstName, lastName , email, mobileNumber, country, and state, emailSubscription, and smsSubscription as input parameters to add a new user in Engagement Services.
You can use the below sample code snippet to create a user along with KSID in Engagement Server using Iris.
Updating Geo-location of a Device
The sendGeoLoction() function is used to update the approximate position of the device based on inputs such as ksid, latitude, longitude and locname.
You can use the below sample code snippet to update geo-location of a device in Engagement Server using Iris.
Updating Beacon details of a Device
The iBeaconUpdate() function takes ksid, and beacons array (uuid, major, and minor) as input parameters and updates the list of beacons for a device.
You can use the below sample code snippet to update beacon details of a device in Engagement Server using Iris.
Fetching the list of Push Messages
The fetchMessages() function accepts following parameters to fetch the list of push messages:
ufid, appid, start and elementsPerPage
deviceId, appId, start and elementsPerPage
ksid, start and elementsPerPage
You can use the below sample code snippet to fetch the list of push messages of a particular device based on some input parameters using Iris.
Fetching Full Content of a Push Message
The fecthFullMessageContent()function accepts fetchID as input parameter and fetches message content from Volt MX Foundry Engagement server.
You can use the below sample code snippet to fetch the content of a message using Iris.