Диггеры
GET diggers/:id
Запрос возвращает параметры заданного диггера.
Справочная информация о ресурсе:
Точка вызова | https://www.diggernaut.com/api/diggers/:id |
Формат ответа | JSON |
Уровень доступа | Пользователь |
Лимиты | Да |
curl -v -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" https://www.diggernaut.com/api/diggers/1
HTTP/1.0 200 OK Date: Fri, 19 Aug 2016 17:36:48 GMT Server: WSGIServer/0.1 Python/2.7.12 Vary: Accept, Accept-Language, Cookie X-Frame-Options: SAMEORIGIN Content-Type: application/json Content-Language: en Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
{ "id": 1, "name": "First Digger", "project": 1, "url": "http://air.zone", "status": "active", "schedule_from": "2016-05-15T15:12:46.702729Z", "schedule_to": "2017-05-15T15:12:46.702729Z", "bandwidth": 1470387363.0, "calls": 8, "requests": 14070, "last_session": { "id": 10, "digger": 1, "started_at": "2016-05-22T23:51:46.648725Z", "finished_at": null, "state": "failure", "runtime": 268, "bandwidth": 42813167.0, "requests": 404, "errors": 1, "items": null, "data_size": 0.0 } }