Skip to content

Commit

Permalink
Relase 2.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
JoabMendes committed Apr 4, 2018
1 parent ccf21d8 commit 5c30333
Show file tree
Hide file tree
Showing 11 changed files with 228 additions and 454 deletions.
288 changes: 119 additions & 169 deletions .idea/workspace.xml

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This wrapper makes it simpler to user the *Facebook Messenger platform* wrappin

For exemple, to send a text message to the user you can easily do:

```py
```python
from fbbotw import fbbotw
# ...

Expand All @@ -21,7 +21,7 @@ fbbotw.post_text_message(fbid=user_fbid, message=my_message)

This is much less code than the traditional way to call the `Send API` and send a text. Using `requests` and `json` you probably would do like this:

```py
```python
fbid = "<user psid>"
message = "Hello World"
url = 'https://graph.facebook.com/v2.6/me/messages?access_token={0}'
Expand All @@ -40,7 +40,7 @@ Learn more about the fbbotw methods by reading the [DOCS](http://fbbotw.readthed

### 1- Install

```sh
```bash
pip install fbbotw
```

Expand All @@ -54,7 +54,7 @@ the value you got from the [facebook app dashboard](https://developers.facebook.
1 - In your `settings.py` define the variable `PAGE_ACCESS_TOKEN` that was
generated on the app configuration from facebook.

```py
```python
#settings.py
PAGE_ACCESS_TOKEN = "<your access token>"
```
Expand All @@ -63,15 +63,15 @@ PAGE_ACCESS_TOKEN = "<your access token>"

Create an **os environment** variable called `PAGE_ACCESS_TOKEN`:

```sh
```bash
export PAGE_ACCESS_TOKEN='<your access token>'
```

### 3 - Import and Use it

After setting the access token, just import and use `fbbotw` methods:

```py
```python
from fbbotw import fbbotw

fbbotw.post_sender_action(fbid="<user psid>", sender_action="typing_on")
Expand Down
151 changes: 0 additions & 151 deletions README.rst

This file was deleted.

4 changes: 2 additions & 2 deletions build/lib/fbbotw/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-

__author__ = """Joabe Mendes"""
__email__ = 'joabe@linux.com'
__version__ = '2.1.0'
__email__ = 'joabe.mdl@gmail.com'
__version__ = '2.1.3'
Binary file added dist/fbbotw-2.1.5-py2.py3-none-any.whl
Binary file not shown.
Binary file added dist/fbbotw-2.1.5.tar.gz
Binary file not shown.
Binary file added dist/fbbotw-2.1.6-py2.py3-none-any.whl
Binary file not shown.
Binary file added dist/fbbotw-2.1.6.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
# built documents.
#
# The short X.Y version.
version = '2.1.2'
version = '2.1.6'
# The full version, including alpha/beta/rc tags.
release = '2.1.2'
release = '2.1.6'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
Loading

0 comments on commit 5c30333

Please sign in to comment.