Application data

Purpose

These commands are used to perform actions related to application data. 

Request URL 

Create application data

Used to store information related to a specific application.  

ZMSDK.app.data.set(data*).then(function(mailObj){ });
*JSON Object

Obtain application data

Used to retrieve information related to a specific application.  

ZMSDK.app.data.get(dataList*).then(function(mailObj){ });
*array of data key

Delete application data

Used to delete information related to a specific application.  

ZMSDK.app.data.delete(dataList*).then(function(mailObj){ });
*array of data key

Sample Request

Create application data


				ZMSDK.app.data.set({userId: "54367", userName:  "Paula"})			

Obtain application data


				ZMSDK.app.data.get(["userId", "userName"]).then(function (mailObj){})			

Delete application data


				ZMSDK.app.data.delete(["userId", "userName"]).then(function(mailObj){ });			

Sample Response

Obtain application data


				[
       {
            "paramName": "userId", 
            "paramValue": "54367"
       },
      {
            "paramName": "userName", 
            "paramValue": "Paula"
        }
]