Giter Site home page Giter Site logo

itsm-module's Introduction

ITSM модуль #itsm-module

Модуль для выгрузки очередей и их названия

Установка

  1. Клонируем проект

    git clone https://github.com/rasulovdd/itsm-module.git
    cd itsm-module

    ssh

    git clone [email protected]:rasulovdd/itsm-module.git
    cd itsm-module
  2. Установка вертуального окружения для проекта

    python -m venv env
  3. Активируем его

    .\env\Scripts\activate
  4. Скачиваем библиотеки для проекта

    pip install -r requirements.txt
  5. Получаем ACCESS_KEY В панели настройки ITSM перейдем в Консоль и выполним команду:

    return api.auth.getAccessKey('rasulovdd').setDeadlineDays(365).uuid

    где 'rasulovdd' - логин выбранного нами пользователя с ролью администратора. Система сгенерирует и вернет нам ключ вида: accessKey=8a5d0671-ae00-4870-8751-269ed963932b добавляем его в .env файл

Пример полученного JSON

{
"10000000001": {
    "queue": "10000000001",
    "title": "Подольск-4",
    "pull_ext": "1210-1219",
    "status": "registered",
    "number_in_queue": [{
            "UUID": "objectBase$19881036",
            "title": "4952217551",
            "metaClass": "objectBase$Citynumber",
            "status": "registered"
        }, {
            "UUID": "objectBase$25331304",
            "title": "4950238779",
            "metaClass": "objectBase$Citynumber",
            "status": "closed"
        }, {
            "UUID": "objectBase$30578356",
            "title": "4950212360",
            "metaClass": "objectBase$Citynumber",
            "status": "closed"
        }, {
            "UUID": "objectBase$30578358",
            "title": "4950857554",
            "metaClass": "objectBase$Citynumber",
            "status": "closed"
        }
    ]
}

registered - В эксплуатации

closed - Архивный

результат запроса запишется в файл text.json

Пример данных в файле .env

ACCESS_KEY = "8a5d0671-ae00-4870-8751-269ed963932b"
SERVER_ADDRESS = "https://test.itsm365.com/sd/"
QUEUE_MIN = 10000000000
QUEUE_MAX = 10000000100

itsm-module's People

Contributors

rasulovdd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.