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.24.tar.gz (19.6 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.24-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: poor_yclientsapi-0.1.24.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.12.3 Linux/6.17.0-1010-azure

File hashes

Hashes for poor_yclientsapi-0.1.24.tar.gz
Algorithm Hash digest
SHA256 a325c944e0f706e1e34cd80a712a7c73bcb35a3c7bf1ae8d99e5eb7f551a209d
MD5 2d2d4fdd871b1b2033214dff2a9b54dc
BLAKE2b-256 2ff54f3ec009a0a1dfae4bed9cf10f0edc027b49a7621f486b82246841ee4da6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poor_yclientsapi-0.1.24-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.12.3 Linux/6.17.0-1010-azure

File hashes

Hashes for poor_yclientsapi-0.1.24-py3-none-any.whl
Algorithm Hash digest
SHA256 4c83ec069e24003e6e3803d37a2837d43c1e8372a692b3c96f17cf7c08e30e5b
MD5 ef89cf0bb09faf8848e9cbf153e259bc
BLAKE2b-256 43a803430ecb680e12eabb91297d6c08b1ba062d63d9a0ffe2df601bbf4e910a

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