Python API Client
Project description
api-client-python
Installation
pip install resellerinterface-api-client-python
Example
from resellerinterface_api_client_python import Client
# create a new client
client = Client()
# login
await client.login("username", "password", 1234)
# make a request
response = await client.request("reseller/details", {"resellerID": "own"})
print(response.getData())
# response
# {
# "time": 12,
# "state": 1000,
# "stateName": "OK",
# "stateParam": "",
# "reseller": {
# "resellerID": 23456,
# "parentID": 23455,
# "state": "ACTIVE",
# "company": "Acme Corp.",
# "firstname": "John",
# "lastname": "Doe",
# "street": "Mainstreet",
# "number": "1223",
# "postcode": "10115",
# "city": "Berlin",
# "country": "DE",
# "mail": "info@example.org",
# "phone": "+491234567890",
# "fax": "",
# "parents": [
# 23455
# ],
# "settings": {
# "group": {
# "name": "value"
# }
# }
# },
# "user": {
# "userID": 12345,
# "state": "ACTIVE",
# "username": "User",
# "password": "****",
# "settings": {
# "group": {
# "name": "value"
# }
# },
# "rightsCategory": 51,
# "rightsGroups": [
# 912,
# 913
# ],
# "directRights": {
# "category": {
# "group": {
# "function": true
# }
# }
# },
# "rights": {
# "category": {
# "group": {
# "function": true
# }
# }
# }
# }
# }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file resellerinterface-api-client-python-1.0.0.tar.gz.
File metadata
- Download URL: resellerinterface-api-client-python-1.0.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b71e89a9f41d1a67c6de938c32d57600973484540f097afb911e81610fcefb2
|
|
| MD5 |
a9c0280c2380f378135fbff5db89c4a7
|
|
| BLAKE2b-256 |
81557a5e506ac7676e8a361331f7855157f20a166a807b59edefbf82c9079d29
|
File details
Details for the file resellerinterface_api_client_python-1.0.0-py3-none-any.whl.
File metadata
- Download URL: resellerinterface_api_client_python-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d46f80ea52bb18b8bd6dee26b2282c2695b8e7b1802b8ac5db8c6c094277a1a
|
|
| MD5 |
af76658797b593b2c9813fca808d7d0a
|
|
| BLAKE2b-256 |
6f0232c88801f70fd3ce21dcab2e602263b4e54f48092d38c1c80c2226dec5d6
|