CommandCLASS _ADDTIMETODEVICE

Purpose:

It allows to set, expand or add on top new time to a renting device.

Minimum version for the target server required: v17.3.5.

Input parameters:

  • CommandClass =_ADDTIMETODEVICE
  • Param1 = target CyberName.
  • Param2 = Session Token.
  • Param3 = PCorDeviceName.
  • Param4 = AmmountOfMinutesToAdd + Chrw$(1) + Pre/Post Flag = 1 = Fijo pospago, = 0 = Fijo prepago.

Output:

[{“ResponseClass”: “ERROR”, “Param1”: “message”, … }]
[{“ResponseClass”: “OK”,”Param1″:”PCorDeviceName”,”Param2″:”New Ending Time Textually expressed”,”Param3″:”Action in spanish and cost textually expressed”}]

Example of usage:

https://wingamer.ar/ApiMasterControl/Comm.php?CommandClass=_ADDTIMETODEVICE&Param1=flulpycrea&Param2=SessionToken&Param3=PC01&Param4=30

The above example will add 30 minutes to the PC01.