report/ppu/status/get/1

 

Returns Pay Per Use usage for requested time period.

Call

https://www.islonline.com/api/islonline-report/1-0/islonline-report.php?method=report/ppu/status/get/1

Parameters

token [string] (required)
    authentication token can be acquired by logging via API sso/login/1 method
uid [string] (required)
    user id can be acquired by logging via API sso/login/1 method
from [integer] (required)
    unix timestamp of the start of the period in question
to [integer] (required)
    unix timestamp of the end of the period in question
unit [string] (required)
    only 'day' is supported for now

Return Values

JSON data object - All fields depend on time period and time unit
    rows - array of units
        unit: unix timestamp of start of the time unit
        value: Pay Per Use usage (hh:mm:ss)

Example

PARAMETERS
   response encoding: JSON
   uid: ::user@example.com::main
   token: secret
   from: 1356998400
   to: 1359676800
   unit: day
POST
   https://www.islonline.com/api/islonline-report/1-0/islonline-report.php?method=report/ppu/status/get/1&he=JSON1
   POST: uid=::user@example.com::main, token=secret, from=1356998400, to=1359676800, unit=day
JSON POST
   https://www.islonline.com/api/islonline-report/1-0/islonline-report.php?method=report/ppu/status/get/1&he=JSON1
   POST: json={ "uid" : "::user@example.com::main", "token" : "secret", "from" : "1356998400", "to" : "1359676800", "unit" : "day" }

Was this article helpful?