Help and Support
Ask a question, report a problem, request a feature...
<<  Back To Forum

Feature request: JSON/XML API for remote control

by GrimFaker on 2015/08/25 04:07:13 PM    
It would be nice to have JSON API for remote control etc.
For now you can use workarounds like this
transfers.html
{
"transfers": [
<!--list_start transfers-->
{
"uid": "$guid$",
"name": "$name$",
"bytes": "$bytes$",
"progress": "$progress$",
"status": "$status$",
"bps_in": "$bps_in$",
"bps_out": "$bps_out$",
"priority": "$priority$",
"timeleft": "$timeleft$"
},
<!--list_end-->
{
"uid": "stub",
"name": "stub",
"bytes": "stub",
"progress": "stub",
"status": "stub",
"bps_in": "stub",
"bps_out": "stub",
"priority": "stub",
"timeleft": "stub"
}
]
}

(last section for JSON validation because ",")
But you still receive preformatted data that is not very flexible for example
$bytes$ output looks like this: "14 320 K of 14 320 K" etc..




This web site is powered by Super Simple Server