dreambox enigma2-plugin-systemplugins-jsonapi examples

raw

commands.txt

$ curl -s -XPOST http://dreambox/api/call -H 'Content-type: application/json' --data-binary '{"method":"enigma2.servicedata.getCurrentService"}' | jq .
{
  "id": null,
  "result": "1:0:19:283E:3FB:1:C00000:0:0:0:",
  "error": null
}

$ curl -s -XPOST http://dreambox/api/call -H 'Content-type: application/json' --data-binary '{"method":"enigma2.servicedata.getServiceName","params":["1:0:19:283E:3FB:1:C00000:0:0:0:"]}' | jq .
{
  "id": null,
  "result": "arte HD",
  "error": null
}

$ curl -s -XPOST http://dreambox/api/call -H 'Content-type: application/json' --data-binary '{"method":"enigma2.servicedata.getTVBouquets"}' | jq . 
{
  "id": null,
  "result": [
    [
      "1:7:1:0:0:0:0:0:0:0:FROM BOUQUET \"userbouquet.favourites.tv\" ORDER BY bouquet",
      "Favourites (TV)"
    ]
  ],
  "error": null
}

$ curl -s -XPOST http://dreambox/api/call -H 'Content-type: application/json' --data-binary '{"method":"enigma2.servicedata.getServiceList","params":["1:7:1:0:0:0:0:0:0:0:FROM BOUQUET \"userbouquet.favourites.tv\" ORDER BY bouquet"]}' | jq .
{
  "id": null,
  "result": [
    [
      "1:0:19:283D:3FB:1:C00000:0:0:0:",
      "Das Erste HD"
    ],
    [
      "1:0:19:2B66:3F3:1:C00000:0:0:0:",
      "ZDF HD"
    ],
    ...
}
Christian Weiske Christian Weiske
owner

History