DaoVoice Open API Python Sdk
Project description
Installation
pip install daovoice-sdk
Basic Usage
from daovoice.client import Client
daovoice_client = Client(token="Your Token Here")
Note that you can find your token in http://dashboard.daovoice.io/app/{app_id}/apps/settings/open-api
Resources
Resources this API supports:
https://api.daovoice.io/v1/conversations https://api.daovoice.io/v1/admins
Examples
Conversations
# Get Conversation by id
conversation = daovoice_client.conversations.get(id="conversation_id")
print conversation.conversation_parts
print conversation.conversation_message
# Reply
daovoice_client.conversations.reply(id="conversation_id",admin_id="***",body="reply msg")
Admins
# list admins
admins = daovoice_client.admins.all()
for ad in admins:
print ad.name
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
daovoice-sdk-0.0.2.tar.gz
(4.6 kB
view details)
File details
Details for the file daovoice-sdk-0.0.2.tar.gz
.
File metadata
- Download URL: daovoice-sdk-0.0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a822f75d71d3e26153060104dc12dac8695d6502845172e80361928e9204446 |
|
MD5 | beab997bd9a85b28823ae44530f3063b |
|
BLAKE2b-256 | 0b106b17bb443a6829618c45ab73bb020c997283b97c513b91edf4ce26985514 |