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: "set", params:{userId: "a", userName: "b"}}).then(function(mailObj){ });
*JSON Object

Obtain application data

Used to retrieve information related to a specific application.  

clientsdk.dispatch("data", { operation: "get", params:["userId", "userName"] }).then(function(mailObj){ });
*array of data key

Delete application data

Used to delete information related to a specific application.  

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

Sample Request: Create application data

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

Sample Request: Obtain application data

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

Sample Response: Obtain application data

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

Sample Request: Delete application data

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