SUZURI API Wrapper for Python.
- Using pip:
pip install suzuripy
- From source:
git clone https://github.com/nabehide/suzuripy.git
cd suzuripy/
python setup.py install
Get API key on SUZURI Developer Center.
from suzuripy import SuzuriClient
client = SuzuriClient(key="YOUR_API_KEY")r = client.getUserSelf()
if r.status_code == 200:
print("success", json.loads(r.text))
else:
print("status code:", r.status_code)r = client.createMaterial(
texture="image file",
title="material title",
)
if r.status_code == 200:
print("success", json.loads(r.text))
else:
print("status code:", r.status_code)For more details, see examples.
MIT