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

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.

Files for daovoice-sdk, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size daovoice-sdk-0.0.8.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page