From e4a99af590a4a82498b5e7554206b157815ef979 Mon Sep 17 00:00:00 2001 From: karl Date: Wed, 7 Sep 2016 18:12:44 +0900 Subject: [PATCH 1/3] return response on send --- fbmq/fbmq.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fbmq/fbmq.py b/fbmq/fbmq.py index 956be72..31c5a16 100644 --- a/fbmq/fbmq.py +++ b/fbmq/fbmq.py @@ -258,6 +258,8 @@ def _send(self, payload, callback=None): if self._after_send is not None: self._after_send(payload, r) + return r + def send(self, recipient_id, message, quick_replies=None, metadata=None, notification_type=None, callback=None): text = message if isinstance(message, str) else None @@ -270,7 +272,7 @@ def send(self, recipient_id, message, quick_replies=None, metadata=None, metadata=metadata), notification_type=notification_type) - self._send(payload, callback=callback) + return self._send(payload, callback=callback) def typing_on(self, recipient_id): payload = Payload(recipient=Recipient(id=recipient_id), From ef537ff146661ce16775f6c2abe97a010af24bc7 Mon Sep 17 00:00:00 2001 From: karl Date: Wed, 7 Sep 2016 18:13:21 +0900 Subject: [PATCH 2/3] return response on send --- fbmq/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbmq/__init__.py b/fbmq/__init__.py index 8537919..13bb34f 100644 --- a/fbmq/__init__.py +++ b/fbmq/__init__.py @@ -1,4 +1,4 @@ -__version__ = '2.0.0' +__version__ = '2.0.1' from .fbmq import * from . import attachment as Attachment From 95067bae8dec166553082d104bf87450d5cdd1c5 Mon Sep 17 00:00:00 2001 From: karl Date: Thu, 22 Sep 2016 17:50:45 +0900 Subject: [PATCH 3/3] update changelog 2.0.1 --- CHANGELOG | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 8caa723..3375ffa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,11 @@ FBMQ Changelog Latest ------ +2.0.1 +_____ + +* Feature : page.send method return Response + 2.0.0 -----