Skip to main content

Poor collection of API methods for Yclients app

Project description

Poor YclientsAPI

codecov

Small set of methods for working with Yclients API. Non official.

Installation

pip install poor_yclientsapi

Usage

>>> from yclientsapi import YclientsAPI
>>> with YclientsAPI(COMPANY_ID, PARTNER_TOKEN, USER_TOKEN) as api:
>>>     services = api.service.list(staff_id=MY_STAFF_ID)

COMPAMY_ID - client company id from YCLIENTS PARTNER_TOKEN - general developer token from YCLIENTS USER_TOKEN - authorization token for client data access in YCLIENTS (Optional)

If you don't have USER_TOKEN, you can call auth.authenticate(USER_LOGIN, USER_PASSWORD) later to retrive and save USER_TOKEN for futher requests

Tests

Integration tests are located in /src/yclientsapi/tests/integration/. See /src/yclientsapi/tests/README.md for details on running tests and setup. CRUD operations for service categories are covered by integration tests and use fixtures for setup/cleanup.

More info

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

poor_yclientsapi-0.1.9.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poor_yclientsapi-0.1.9-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file poor_yclientsapi-0.1.9.tar.gz.

File metadata

  • Download URL: poor_yclientsapi-0.1.9.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

File hashes

Hashes for poor_yclientsapi-0.1.9.tar.gz
Algorithm Hash digest
SHA256 0ab9931bedb04c876a3285a02e295f4b085c243d4a89382223e1116ce335df8f
MD5 756e26c98e643c89961512b65463244a
BLAKE2b-256 be92a1b6e6ab57a74411a3c61c45b53e08e7ac1f7273958db81b9a2d5e6f4fe0

See more details on using hashes here.

File details

Details for the file poor_yclientsapi-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: poor_yclientsapi-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

File hashes

Hashes for poor_yclientsapi-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ec80fa9191465f6f7c2783ecca9cc2ea4e986518c3f72e508860a69d6e0c6e9c
MD5 4243af139b57530a4af94d8b45ff34fa
BLAKE2b-256 3723ca6f1eb135c4feb45536874a8b9992e12e85539bd628547f8db0508ad366

See more details on using hashes here.

Supported by

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