Multi-Save Data
Creates a list of player data items and saves them all at once.
Source Code
playNANOOHandlers.storageMultiSave= function(args) {
var storageItems = [];
storageItems.push({
'StorageKey' : 'StorageKey1',
'StorageValue' : 'StorageValue1',
'IsPrivate' : true
});
storageItems.push({
'StorageKey' : 'StorageKey2',
'StorageValue' : 'StorageValue2',
'IsPrivate' : false
});
var result = plugin['v20221001'].storage.multiSave({
parameters : {
storageItems : storageItems
}
});
if(result.statusCode == 200) {
return {
status : "success"
}
} else {
return {
status : "fail"
}
}
}
Request Parameter
Parameter | Description | Type |
---|---|---|
storageItems | List of data items to be saved | object |
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}
Communication Result Details
Data Key | Description | Type |
---|---|---|
Status | Operation result | string |