Metadata-Version: 1.0
Name: dealtape-python-sdk
Version: 0.0.1
Summary: DealTape SDK for Python
Home-page: https://github.com/rcrai/dealtape-python-sdk
Author: Yutao Zhang
Author-email: yutao@recurrent.ai
License: MIT
Description: # Recurrent.ai DealTape SDK for Python
        
        概述
        --------
        
        DealTape数据推送SDK
        
        
        安装方式
        --------
        
        使用PIP进行安装（以Linux系统为例）
        
        .. code-block:: bash
            
            $pip install dealtape
        
        也可以直接安装解压后的安装包
        
        .. code-block:: bash
        
            sudo python setup.py install
        
        
        快速使用
        --------
        
        .. code-block:: python
        
            # -*- 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:
                print(resp.text)
Platform: any
