Метод возвращает историю прошивок/обновлений аппаратного ключа, переданного в параметре пути {dongle_id}.

Адрес/v1.0/getdonglehistory/{dongle_id}
ТипGET 
LoginТребуется 

Входные параметры

ПараметрОбязательностьОписаниеВозможные значения

direction

Опционален

Направление сортировки.

По умолчанию используется сортировка asc

  • asc — сортировка от меньшего к большему;
  • desc — сортировка от большего к меньшему

limit

Опционален

Максимальное количество записей, которые можно получить.

По умолчанию равен 100

От 1 до 100 включительно

offset

 

Опционален

Смещение, показывающее с какого порядкового номера записи (с учетом выбранной сортировки) необходимо получить limit записей.

Записи нумеруются с 0


actiondatebegin 

Опционален

В ответ будут попадать только события с совпадающим или более поздним временем в Unix time


actiondateend 

ОпционаленВ ответ будут попадать все события с совпадающим или более ранним временем в Unix time

Если параметры actiondatebegin и actiondateend заданы одновременно, будут отобраны события из отрезка времени [actiondatebegin, actiondateend]

actionresult

Опционален

В ответ будут попадать только события, у которых actionResult совпадает с одним из перечисленных значений

value1[,value2,value3,...]

Пример запроса
https://station.guardant.ru/v1.0/getdonglehistory/1150974838?direction=desc&limit=2&offset=1&actionresult=0,1,2&actiondatebegin=1638335919

Ответ

Возвращает массив history:

Пример результата запроса
{
    "history": [
        {
            "_id": 17358,
            "actiondate": 1738335989,
            "actionresult": 0,
            "activationsconsumed": 1,
            "activationscountcurrent": 67,
            "confirmedupdate": true,
            "customer": {
                "_id": 13674,
                "archivationdate": 0,
                "archived": false,
                "companyname": "",
                "crmid": "777777",
                "description": "",
                "email": "john@mycompany.com",
                "lastname": "Doe",
                "name": "John",
                "phone": "+14155552671",
                "refid": "",
                "status": 0
            },
            "dongle": {
                "dongleid": 1150974838,
                "drivertype": 16,
                "model": 2,
                "netresource": 0,
                "publiccode": -1287687416,
                "typeflags": 16826
            },
            "netlicensesconsumed": 0,
            "netlicensesremains": 0,
            "order": {
                "_id": 60183,
                "activationbirthdate": 1738335939,
                "activationdeathdate": 0,
                "activationlimit": 0,
                "archivationdate": 0,
                "archived": false,
                "canoverwritecontainer": true,
                "crmid": "",
                "customer": {
                    "_id": 13674,
                    "archivationdate": 0,
                    "archived": false,
                    "companyname": "",
                    "crmid": "777777",
                    "description": "",
                    "email": "john@mycompany.com",
                    "lastname": "Doe",
                    "name": "John",
                    "phone": "+14155552671",
                    "refid": "",
                    "status": 0
                },
                "customerrequired": false,
                "date": 1738335939,
                "description": "",
                "isdemo": false,
                "ishardwarelicense": true,
                "istrial": false,
                "istrialunlim": false,
                "netlicenseslimit": 0,
                "number": 94,
                "quantity": 1,
                "refid": "",
                "status": 8,
                "submitdate": 1738335975,
                "submituser": {
                    "_id": 11536,
                    "confirmed": true,
                    "email": "bob@mycompany.com",
                    "status": true,
                    "userdetails": {
                        "_id": 11536,
                        "archivationdate": 0,
                        "archived": false,
                        "firstname": "Bob",
                        "lastname": "Doe",
                        "lastvisitdate": 1775117766,
                        "role": {
                            "_id": 1,
                            "createorders": true,
                            "createproducts": true,
                            "createusers": true,
                            "manageprotect": true,
                            "nameeng": "Administrator",
                            "namerus": "Администратор",
                            "readvendorbalance": true
                        },
                        "settings": {
                            "language": 0,
                            "notification_off": true
                        }
                    }
                },
                "triallifetimedays": 0,
                "type": 1
            },
            "vtcbalanceconsumed": 0,
            "vtcbalanceremains": 0
        },
        {
            "_id": 17357,
            "actiondate": 1738335749,
            "actionresult": 0,
            "activationsconsumed": 1,
            "activationscountcurrent": 66,
            "confirmedupdate": true,
            "customer": {
                "_id": 13674,
                "archivationdate": 0,
                "archived": false,
                "companyname": "",
                "crmid": "777777",
                "description": "",
                "email": "john@mycompany.com",
                "lastname": "Doe",
                "name": "John",
                "phone": "+14155552671",
                "refid": "",
                "status": 0
            },
            "dongle": {
                "dongleid": 1150974838,
                "drivertype": 16,
                "model": 2,
                "netresource": 0,
                "publiccode": -1287687416,
                "typeflags": 16826
            },
            "netlicensesconsumed": 0,
            "netlicensesremains": 0,
            "order": {
                "_id": 60181,
                "activationbirthdate": 1738335633,
                "activationdeathdate": 0,
                "activationlimit": 0,
                "archivationdate": 0,
                "archived": false,
                "canoverwritecontainer": true,
                "crmid": "",
                "customer": {
                    "_id": 13674,
                    "archivationdate": 0,
                    "archived": false,
                    "companyname": "",
                    "crmid": "777777",
                    "description": "",
                    "email": "john@mycompany.com",
                    "lastname": "Doe",
                    "name": "John",
                    "phone": "+14155552671",
                    "refid": "",
                    "status": 0
                },
                "customerrequired": false,
                "date": 1738335633,
                "description": "",
                "isdemo": false,
                "ishardwarelicense": true,
                "istrial": false,
                "istrialunlim": false,
                "netlicenseslimit": 0,
                "number": 92,
                "quantity": 1,
                "refid": "",
                "status": 8,
                "submitdate": 1738335677,
                "submituser": {
                    "_id": 11536,
                    "confirmed": true,
                    "email": "bob@mycompany.com",
                    "status": true,
                    "userdetails": {
                        "_id": 11536,
                        "archivationdate": 0,
                        "archived": false,
                        "firstname": "Bob",
                        "lastname": "Doe",
                        "lastvisitdate": 1775117766,
                        "role": {
                            "_id": 1,
                            "createorders": true,
                            "createproducts": true,
                            "createusers": true,
                            "manageprotect": true,
                            "nameeng": "Administrator",
                            "namerus": "Администратор",
                            "readvendorbalance": true
                        },
                        "settings": {
                            "language": 0,
                            "notification_off": true
                        }
                    }
                },
                "triallifetimedays": 0,
                "type": 1
            },
            "vtcbalanceconsumed": 0,
            "vtcbalanceremains": 0
        }
    ]
}
  • No labels