messengerbot icon indicating copy to clipboard operation
messengerbot copied to clipboard

Added header functionality to send method in __init__.py

Open zsiegel92 opened this issue 7 years ago • 2 comments

The Facebook Messenger API requires this header for json content. This package wasn't fully functional for me in all cases without this header. The current format may be out of date, or simply wrong. In any case, I propose this branch be merged.

Take a look at Facebook's Messenger API documentation for buttons, for example. POST requests are sent with the header "Content-Type: application/json", which is not part of this package's current formatting.

zsiegel92 avatar May 12 '17 08:05 zsiegel92

Please update the failing unit test.

geeknam avatar May 12 '17 23:05 geeknam

Hey I'm not sure how to do that. If you can give me some help, I'd be happy to contribute. I'm pretty inexperienced.

On Fri, May 12, 2017 at 4:46 PM Nam Ngo [email protected] wrote:

Please update the failing unit test.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/geeknam/messengerbot/pull/23#issuecomment-301209384, or mute the thread https://github.com/notifications/unsubscribe-auth/AZHwvPwLG6kLpk-QpWytKRZPdfQW-jzkks5r5O9qgaJpZM4NY_ua .

zsiegel92 avatar May 13 '17 16:05 zsiegel92