This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Help us improve Python packaging - Donate today!
Project Description
Messenger Hook
==============

Description
-----------

This is a basic implementation of a facebook messenger Hook.
It's working with falcon but should be easily modify to work with Flask or Django.

Install
-------

You can run `pip install messenger_hook` to install it.

Build a ping application
------------------------

```python
import falcon
from messenger_hook.falcon_messenger import FalconMessenger

app = falcon.API()
hook = FalconMessenger('verify_key', 'your_token')
app.add_route('/hook/', hook)
```

You need to install falcon to use it with falcon.
You can launch it with gunicorn or uwsgi


Transform message
-----------------

```python
import falcon
from messenger_hook.falcon_messenger import FalconMessenger

class MyMessenger(FalconMessenger):
def transform_message(self, text, attachments):
if text:
return 'You sent {}'.format(message)
elif attachments:
return 'Yout sent an attachment'
return 'You sent nothing'

app = falcon.API()
hook = FalconMessenger('verify_key', 'your_token')
app.add_route('/hook/', hook)
```
Release History

Release History

0.2.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.5

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
messenger_hook-0.2.1.tar.gz (2.0 kB) Copy SHA256 Checksum SHA256 Source Apr 19, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting