Metadata-Version: 2.1
Name: zenmoney-py
Version: 1.0.11
Summary: Library for zenmoney.ru API
Home-page: https://github.com/cooper30/zenmoney_lib.git
Author: Nikita Zvekov
Author-email: cooper30@mail.ru
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: ~=3.12
Description-Content-Type: text/markdown
License-File: LICENSE

## Python library for ZenMoney API
This library allows you to use [ZenMoney API](https://github.com/zenmoney/ZenPlugins/wiki/ZenMoney-API).

There is a simplest way to start:

```python
import time

from zenmoney import ZenmoneyOAuth2, ZenmoneyRequest
from zenmoney.models import Diff

oauth = ZenmoneyOAuth2('your_consumer_key', 'your_consumer_secret', 'user_name', 'user_password')
zenmoney_client = ZenmoneyRequest(oauth.token.access_token)
server_timestamp = 0
current_timestamp = int(time.time())
params = Diff(
    server_timestamp=server_timestamp,
    current_client_timestamp=current_timestamp,
)
data = zenmoney_client.diff(params=params)
```
