Metadata-Version: 2.1
Name: poor_yclientsapi
Version: 0.1.1
Summary: Poor collection of API methods for Yclients app
Home-page: https://github.com/mkosinov/yclientsapi
License: MIT
Author: Maksim Kosinov
Author-email: mkosinov@mail.ru
Requires-Python: >=3.12,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: httpx (>=0.27.2,<0.28.0)
Requires-Dist: orjson (>=3.10.7,<4.0.0)
Requires-Dist: pydantic (>=2.9.1,<3.0.0)
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
Project-URL: Repository, https://github.com/mkosinov/yclientsapi
Description-Content-Type: text/markdown

# Poor YclientsAPI

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

## Installation

```bash
pip install poor_yclientsapi
```

## Usage

```python
>>> 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

/src/yclientsapi/tests/integration/README.md

## More info

* <https://yclients.com/appstore/developers>
* <https://developers.yclients.com/>

