DealTape SDK for Python
Project description
概述
DealTape数据推送SDK
安装方式
使用PIP进行安装(以Linux系统为例)
$ pip install dealtape
也可以直接安装解压后的安装包
$ sudo python setup.py install
快速使用
# -*- coding: utf-8 -*-
from dealtape import CallLog, DealTapeClient
business = 'YOUR_BUSINESS_KEY' # 企业的唯一标识,即在企业DealTape系统中的二级域名
client = DealTapeClient(business=business)
item = CallLog(
url="CALLLOG_AUDIO_URL", # 电话录音的url
id="CALLLOG_UNIQUE_IDENTIFIER", # 电话在客户内部系统中的唯一标示
staff_id="STAFF_ID", # 该电话坐席的唯一标示
customer_id="CUSTOMER_ID", # 客户的唯一标示
deal_closed=True/False, # 该电话是否成单
timestamp=TIMESTAMP # 电话的拨打时间(datetime.datetime类型, 或是int类型的unix时间戳)
)
resp = client.push_calllog(item)
if not resp.ok:
print(resp.text)
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
dealtape-0.0.3.tar.gz
(2.4 kB
view details)
File details
Details for the file dealtape-0.0.3.tar.gz.
File metadata
- Download URL: dealtape-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69b11d05e2ccf6ec6a236212507342996ea61cb493876fb6a1b714c530ac1b0c
|
|
| MD5 |
2ebb3369fd5f2df42b5a7dabe4a2bede
|
|
| BLAKE2b-256 |
72b5616492c9b4cfbc3bcbed9d96c98262d2946f6b8c10868009e7efb7cb6bf6
|