semvec/pypi-packages huggingface dataset:
daapi 1.0.0b1
Python client for deviantART API
License: MIT License
Keywords: deviantart api,python deviantart

# daAPI - Python client for DeviantArt API
  
## Description
daAPI is non-official Python library which provides convenient way to communicate with DeviantArt API.
## Installation
Not published yet  
``pip install daapi``  
You should be able to install directly from repository:  
``pip install git+https://github.com/Archirk/daapi@develop -U``
## Quickstart
Firstly, DAAPI object should be configured. It will manage and store sessions.  
Client secret and redirect uri are optional parameters depending on authorization flow.
```python
from daapi.client import DAAPI


CLIENT_ID = 'YOUR DEVIANTART APPLICATION ID'
CLIENT_SECRET = 'YOUR DEVIANTART APPLICATION CLIENT_SECRET'
REDIRECT_URI = 'https://site.com' # Redirect uri for user authorization
# NOTE: redirect uri must be https

DAAPI.set_config(client_id=CLIENT_ID,
                 client_secret=CLIENT_SECRET,
                 redirect_uri=REDIRECT_URI)
session = DAAPI.get_session(access_type='client_credentials')
r = session.util.placebo() 
print(r.status_code, r.json())
```
```shell
>> 200 {'status': 'success'}
```
docs with all methods will be published later
## Developing