Skip to main content

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

https://api.daovoice.io/v1/users

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.7.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file daovoice-sdk-0.0.7.tar.gz.

File metadata

File hashes

Hashes for daovoice-sdk-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9b5c23b9a1823d13d8318cf0937e92ac5023804ed8bdf43be5268a5177fac0c1
MD5 106cd677a150dfd16615bede6e5f58dd
BLAKE2b-256 45524977fef9ac38e91ee3f88fee31cd1eeed17b34972289655527a66accd09a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page