I made it because there was no Python wrapper for Qiita API v2
The version is set to 0.1.0
because there is no choice but to write it appropriately with a test or doctest
.
Since it is registered on Pypi, you can do it with pip
pip install qiita_v2
from qiita_v2.client import QiitaClient
client = QiitaClient(access_token=<access_token>)
response = client.get_user('petitviolet')
res.to_json()
# => jsonified contents
Pass the access token as an argument to ʻaccess_token or You can also write ʻACCESS_TOKEN: <access_token>
in the yaml file and pass the file name to config_file
.
I haven't written a little more detailed usage, so please see Implementation of client.py.
For docstring, refer to increments / qiita-rb pack </ s> It is written...
Recommended Posts