Skip to main content

This library helps you easily create a python application with Hollihop API

Project description

HolliHop API Client

Python библиотека предназначенная для интеграции с CRM HolliHop через её REST-API. Чтобы воспользоваться библиотекой нужно указать субдомен школы использующей CRM и ключ доступ к API.

Установка

pip install hollihop-api-client

Использование

Инициализация

from hollihop_api_client import HolliHopAPI

hh_api = HolliHopAPI(HH_DOMAIN, HH_COMMON_API_KEY)

Обратите внимание, что ключи нужно получать из переменных среды:

from os import environ

HH_DOMAIN = environ['HH_DOMAIN']
HH_COMMON_API_KEY = environ['HH_COMMON_API_KEY']

Запрос доступных локаций

locations = hh_api.locations.get_locations() #метод возвращает все доступные локации
location = hh_api.locations.get_locations(id=1) #метод возвращает данные для локации с указанным в аргументе id
location = hh_api.locations.get_locations(name='Test') #метод возвращает данные для локации с указанным именем в аргументе name

Ниже по ссылкам доступны описания всех доступных методов

locations offices leads ed_units ed_unit_students

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hollihop_api_client-0.0.24.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

hollihop_api_client-0.0.24-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file hollihop_api_client-0.0.24.tar.gz.

File metadata

  • Download URL: hollihop_api_client-0.0.24.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for hollihop_api_client-0.0.24.tar.gz
Algorithm Hash digest
SHA256 3d055386ed8269047116cec3d6724535d4cfd07cac6c7d54ecc57f96dbfd2989
MD5 be92fbbe4ab5f9915075cfb8a939bae4
BLAKE2b-256 0e56272a0c5184173974c8f413ba2301cdc6c4e6c84785542a5231ffaee4c671

See more details on using hashes here.

File details

Details for the file hollihop_api_client-0.0.24-py3-none-any.whl.

File metadata

File hashes

Hashes for hollihop_api_client-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 50ca356f320fde312232abc13e6ea09d20abfc1097d6ae1407796ebc79c2636a
MD5 d21aac64f9b0a9bd4466ca82574845c2
BLAKE2b-256 473968ef471b570bbb73f4d1a100fb1841801c0dea3a9b2347b8485b13984bca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page