Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

DealTape SDK for Python

Project description

# DealTape SDK for Python





$pip install dealtape


sudo python install


# -*- coding: utf-8 -*-
from dealtape import CallLog, DealTapeClient
from datetime import datetime

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:

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 dealtape-python-sdk, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size dealtape-python-sdk-0.0.1.tar.gz (2.4 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