Poor collection of API methods for Yclients app
Project description
Poor YclientsAPI
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poor_yclientsapi-0.1.19a0.tar.gz.
File metadata
- Download URL: poor_yclientsapi-0.1.19a0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab6b5378988cc7b3fefe68593d1b9a533d124cdd8ec19b09713e67213497e778
|
|
| MD5 |
758da9298c719238f720712f735530bf
|
|
| BLAKE2b-256 |
e770b1e725b8afb05e13060a4631a1759ed452cf6d91a7bdbd8b24cf2d47aac6
|
File details
Details for the file poor_yclientsapi-0.1.19a0-py3-none-any.whl.
File metadata
- Download URL: poor_yclientsapi-0.1.19a0-py3-none-any.whl
- Upload date:
- Size: 37.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7be59589268316d63a12087c7815ad9022bb058ea9532f89f8dd4c668f7bc07c
|
|
| MD5 |
6251953efe70f07965c0d96e27d95a86
|
|
| BLAKE2b-256 |
3c9b056da4b14678c1565c73c0658abdc1382bab4faa7fce71357822bb372644
|