Skip to content

Post API Get Content Zones

Dominik Magdaleński edited this page Jul 3, 2019 · 1 revision

Post API - /get_content_zones

URL: https://dive-networks.com/api/rpc/34/get_content_zones

HTTP Method: GET

HTTP Header: Authorization: Token your-api-token-here

Successful response

Status: 200 OK

Body:

{
  "result": [
    {
      "id": content-zone-id,
      "display_name": content-zone-display-name
    },
    (...other content zones...)
  ]
}

Example (HTTPie)

HTTPie request:

http --follow https://dive-networks.com/api/rpc/34/get_content_zones Authorization:"Token your-api-token-here"

HTTPie response:

HTTP/1.1 200 OK
(...headers...)

{
    "result": [
        {
            "display_name": "Entire DIVE Demo (Canada) Network",
            "id": 13
        }
    ]
}