Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

15five/clearbit-slack-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clearbit-slack-python

Clean beautiful customer data. Now in Slack.

https://raw.githubusercontent.com/15five/clearbit-slack-python/master/docs/_static/img/example.png

DEPRECATED IN FAVOR OF: https://pypi.org/project/clearbit/

Installation

Add to your application's requirements.txt file...

clearbit-slack-python

Or pip install...

$ pip install clearbit-slack-python

Configuration

To use, instantiate a Notifier object with your Slack token, channel, and data dict built from part of the body of the POST request sent by Clearbit.

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()

Contributing

  1. Fork it (https://github.com/15five/clearbit-slack-python/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Packages

No packages published

Languages