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
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
User
# create user
user = daovoice_client.user.create(user_id="123456",name="example", email="example@daovoice.io")
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.6.tar.gz
(5.0 kB
view details)
File details
Details for the file daovoice-sdk-0.0.6.tar.gz
.
File metadata
- Download URL: daovoice-sdk-0.0.6.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e8dc3ccf031be1ca42c2371a3b917e6510c9cf82faf18c072a85bc7cf49291 |
|
MD5 | 33d4e1e96ea58389be4097636d302a55 |
|
BLAKE2b-256 | 8f716eeff365ddedadfaadb7f9066c32e8f50c495b6b33cfc0d72a1a059f4784 |