Query All Currency
Queries all in-game currency information owned by the player.
Source Code
var result = pluginCurrency.all({
version : "v4"
});
var parse = JSON.parse(result.body);
if (parse.error == undefined) {
for(var i = 0; i < parse.items.length; i++) {
log.debug(parse.items[i].currency);
log.debug(parse.items[i].amount);
}
return {
"status" : "success"
}
} else {
return {
"status" : "fail"
}
}
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"items" : [
{
"currency": "CurrencyCode",
"amount": 100
}
]
}
Response Details
| Data Key | Description | Type |
|---|---|---|
| currency | Currency code | string |
| amount | Currency owned | double |