一个简单的漂移api包装器。
drift-python的Python项目详细描述
[![开源爱情](https://badges.frapsoft.com/os/mit/mit.svg?(https://github.com/ellerbrock/open source badge/)
[![PYPI版本](https://badge.fury.io/py/drift python.svg)(https://badge.fury.io/py/drift python)
<;p align=“center”>;
<;img src=“img/drift_python.png”width=“300”/>;
<;/p>;
drift python
a[drift api](https://devdocs.drift.com)用python编写的包装器。
api](https://devdocs.drift.com/docs/contact model)。
**可用方法**
-`drift.contacts.get()`
-联系人id(必需)
-电子邮件(可选)
-限制(可选)
-
-`drift.contacts.create()`
-**属性(必需)
` drift.contacts.create(email='johndoe@drift.com')`
-`drift.contacts.update()`
-联系人id(必需)
-**属性(必需)
-`drift.contacts.delete()`
-联系人id(必需)
-`drift.contacts.add_tags()`
-联系人id(必需)
-标签(必需)
```
漂移.联系人.添加标签(
对话id=1,
tags=[{name':'my tag'}
)
````
-`drift.contacts.remove_tag()`
-contact_id(必需)
-tag_name(必需)
-`drift.contacts.remove_tags_bulk()`
-contact_id(必需)
api](https://devdocs.drift.com/docs/conversation overview)
**可用的方法**
-`drift.conversations.get()`
-对话id(必需)
-`drift.conversations.list()`
-限制(可选)-默认为“50”
-下一个(可选)
-`drift.conversations.create\message()`
-对话id(必需)
-组织id(必需)
-类型(必需)
-正文(可选)
-按钮(可选)
-编辑的消息id(可选)
-编辑的类型(可选)
示例:
`````
漂移。对话。创建消息(
对话id=1,
组织id=1,
type='chat'
)
```
-`drift.conversations.get_messages()`
-conversation_id(必需)
-next_u(可选)
-`drift.conversations.get_attachments()`
-doc_id(必需)
-`drift.conversations.get_Metrics()`
-查询(必需)
示例:
`
`
漂移。对话。获取度量(
{
“metrics”:[
{
“type”:“avg”,
“property”:“numbotMessages”
}
],
“filters”:[
{
“property”:“createDat”,
“operation”:“between”,
“值”:[“2018-01-01”、“2018-07-31”]
>
>
>
>
>
```
>
用户
>在这里阅读文档[用户api](https://devdocs.drift.com/docs/docs/user model)这里阅读文档[用户api](https://devdocs.drift.com/docs/docs/user model)
**可用的方法**
>
>>>-`drift.user.user.get()`
>
>
<.list()`
-` drift.users.update()`
-用户ID(必需)
-**属性(必需)
示例:
drift.users.update(243266,phone='555-555-5555')
您可以在[slack]上找到我们(https://join.slack.com/t/devdrift/shared廑invite/enqtmzg4mti3ndk0lwwwwwztkymmq1yjdknjwzdg2mzk2yjaymdg4mwviymizjvhzntzndqwmdvjogrjgu5otkxmwq0zgu0mjg)啊!
如果您发现了一个bug,请随时打开带有修复的PR或提交问题。让我们知道在开发松弛!
[![PYPI版本](https://badge.fury.io/py/drift python.svg)(https://badge.fury.io/py/drift python)
<;p align=“center”>;
<;img src=“img/drift_python.png”width=“300”/>;
<;/p>;
drift python
a[drift api](https://devdocs.drift.com)用python编写的包装器。
api](https://devdocs.drift.com/docs/contact model)。
**可用方法**
-`drift.contacts.get()`
-联系人id(必需)
-电子邮件(可选)
-限制(可选)
-
-`drift.contacts.create()`
-**属性(必需)
` drift.contacts.create(email='johndoe@drift.com')`
-`drift.contacts.update()`
-联系人id(必需)
-**属性(必需)
-`drift.contacts.delete()`
-联系人id(必需)
-`drift.contacts.add_tags()`
-联系人id(必需)
-标签(必需)
```
漂移.联系人.添加标签(
对话id=1,
tags=[{name':'my tag'}
)
````
-`drift.contacts.remove_tag()`
-contact_id(必需)
-tag_name(必需)
-`drift.contacts.remove_tags_bulk()`
-contact_id(必需)
api](https://devdocs.drift.com/docs/conversation overview)
**可用的方法**
-`drift.conversations.get()`
-对话id(必需)
-`drift.conversations.list()`
-限制(可选)-默认为“50”
-下一个(可选)
-`drift.conversations.create\message()`
-对话id(必需)
-组织id(必需)
-类型(必需)
-正文(可选)
-按钮(可选)
-编辑的消息id(可选)
-编辑的类型(可选)
示例:
`````
漂移。对话。创建消息(
对话id=1,
组织id=1,
type='chat'
)
```
-`drift.conversations.get_messages()`
-conversation_id(必需)
-next_u(可选)
-`drift.conversations.get_attachments()`
-doc_id(必需)
-`drift.conversations.get_Metrics()`
-查询(必需)
示例:
`
`
漂移。对话。获取度量(
{
“metrics”:[
{
“type”:“avg”,
“property”:“numbotMessages”
}
],
“filters”:[
{
“property”:“createDat”,
“operation”:“between”,
“值”:[“2018-01-01”、“2018-07-31”]
>
>
>
>
>
```
>
用户
>在这里阅读文档[用户api](https://devdocs.drift.com/docs/docs/user model)这里阅读文档[用户api](https://devdocs.drift.com/docs/docs/user model)
**可用的方法**
>
>>>-`drift.user.user.get()`
>
>
<.list()`
-` drift.users.update()`
-用户ID(必需)
-**属性(必需)
示例:
drift.users.update(243266,phone='555-555-5555')
您可以在[slack]上找到我们(https://join.slack.com/t/devdrift/shared廑invite/enqtmzg4mti3ndk0lwwwwwztkymmq1yjdknjwzdg2mzk2yjaymdg4mwviymizjvhzntzndqwmdvjogrjgu5otkxmwq0zgu0mjg)啊!
如果您发现了一个bug,请随时打开带有修复的PR或提交问题。让我们知道在开发松弛!