将clearbit个人和公司数据推入一个空闲通道
clearbit-slack-python的Python项目详细描述
干净漂亮的客户数据。现在松懈了。
安装
添加到应用程序的requirements.txt文件…
clearbit-slack-python
或PIP安装…
$ pip install clearbit-slack-python
配置
要使用,请实例化notifier 对象,并生成松弛令牌、通道和数据dict 来自clearbit发送的post请求主体的一部分。
import json from clearbit_slack import Notifier slack_token = 'xoxp-1234567890-6789012345-5432109876-12ab34' slack_channel = '#signups' body_data = json.loads(request_body) attrs = body_data.get('body', {}) notifier = Notifier(slack_token, slack_channel, attrs=attrs) notifier.notify()
贡献
- 叉它(https://github.com/15five/clearbit-slack-python/fork)
- 创建您的功能分支(git checkout-b my new feature)
- 提交更改(git commit-am'add some feature')
- 推到分支(git push origin my new feature)
- 创建新的拉取请求