From Bright Pattern Documentation
Jump to: navigation, search
Tracy (talk | contribs)
Created page with "<translate> = Get subscription data = Gets statistics data of an active subscription. == URI == https://{host:port}/statsapi/subscription/data == HTTP Method == GET == Resp..."
 
Redirected page to Api
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<translate>
#REDIRECT [[Api]]
= Get subscription data =
Gets statistics data of an active subscription.
 
== URI ==
https://{host:port}/statsapi/subscription/data
 
== HTTP Method ==
GET
 
== Response ==
*401 – Unauthorized
*404 – Bad Request (There is no active subscription)
*204 –No Content (Data is not ready yet)
*200 – OK
 
{
    {
        "<app id>": {
        "stats_totals": {//array of single statistics
        "<statistic name>": <statistic value>
    },
    "service_grids": [//array of service grids
        {
            "id": "<grid Id>",
            "values": [
                {
                    "<column id>": "<statistic value>"
                }
            ]
        }
    ],
    "agent_grids": [ //array of agent grids
        {
            "id": "<grid Id>",
            "values": [
                {
                    "<column id>": "<statistic value>"
                }
            ]
        }
    ],
    "chat_messages": [
        {
            "id": "<message id>",
            "login_id": "<sender loginId>",
            "first_name": "<sender first name>",
            "last_name": "<sender last name>",
            "send_time": "<utc timestamp>",
            "is_urgent": "1|0",
            "content": "<chat message>"
        }
    ]
    }
}
 
 
 
 
 
</translate>

Latest revision as of 22:53, 3 August 2020

Redirect to: