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.  

clientsdk.dispatch("data", {] operation: "get", params:["a","b"] }).then(function(mailObj){ });
*JSON Object

Obtain application data

Used to retrieve information related to a specific application.  

clientsdk.dispatch("data", {] operation: "set", data:{a: "1",b:"2"} }).then(function(mailObj){ });
*array of data key

Delete application data

Used to delete information related to a specific application.  

clientsdk.dispatch("data", {] operation: "delete", data:["a","b"] }).then(function(mailObj){ });
*array of data key

Sample Request

Create application data


				clientsdk.dispatch("data", {] operation: "get", params:[userId: "54367", userName:  "Paula"] }).then(function(mailObj){ });			

Obtain application data


				clientsdk.dispatch("data", {] operation: "set", data:{"userId", "userName"} }).then(function(mailObj){ });			

Delete application data


				clientsdk.dispatch("data", {] operation: "delete", data:["userId", "userName"] }).then(function(mailObj){ });			

Sample Response

Obtain application data


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