Сессии

GET sessions

Запрос возвращает список сессий авторизованного пользователя.

Справочная информация о ресурсе:

Точка вызова https://www.diggernaut.com/api/diggers/:id/sessions
Формат ответа JSON
Уровень доступа Пользователь
Лимиты Да
                    curl -v -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" https://www.diggernaut.com/api/sessions
                    
                    HTTP/1.0 200 OK
Date: Sat, 20 Aug 2016 20:43:34 GMT
Vary: Accept, Accept-Language, Cookie
X-Frame-Options: SAMEORIGIN
Content-Type: application/json
Content-Language: en
Allow: GET, HEAD, OPTIONS
                    [
    {
        "id": 1,
        "digger": 1,
        "started_at": "2016-07-02T12:52:45.547439Z",
        "finished_at": "2016-07-02T12:52:49.180299Z",
        "state": "failure",
        "runtime": 34,
        "bandwidth": 1778451.0,
        "requests": 16,
        "errors": 1,
        "items": null,
        "data_size": 0.0
    },
    {
        "id": 2,
        "started_at": "2016-07-12T16:09:48.436799Z",
        "finished_at": "2016-07-12T16:09:48.589169Z",
        "state": "success"
        "runtime": 34,
        "bandwidth": 17378451.0,
        "requests": 116,
        "errors": 0,
        "items": 507,
        "data_size": 1982734.0
    },
]