{ "info": { "author": "The Columbia Lion", "author_email": "operations@columbialion.com", "bugtrack_url": null, "classifiers": [], "description": "Morrison |Build Status|\n===========================\n\nPython Wrapper for `Facebook Messenger\nPlatform `__.\n\n**Disclaimer**: This wrapper is **NOT** an official wrapper and does not\nattempt to represent Facebook in anyway.\n\nAbout\n~~~~~\n\nThis wrapper has the following functions:\n\n- ``send_text_message(recipient_id, message)``\n- ``send_message(recipient_id, message)``\n- ``send_generic_message(recipient_id, elements)``\n- ``send_button_message(recipient_id, text, buttons)``\n- ``send_attachment(recipient_id, attachment_type, attachment_path)``\n- ``send_attachment_url(recipient_id, attachment_type, attachment_url)``\n- ``send_quick_reply(recipient_id, text, buttons) ``\n- ``send_image(recipient_id, image_path)``\n- ``send_image_url(recipient_id, image_url)``\n- ``send_audio(recipient_id, audio_path)``\n- ``send_audio_url(recipient_id, audio_url)``\n- ``send_video(recipient_id, video_path)``\n- ``send_video_url(recipient_id, video_url)``\n- ``send_file(recipient_id, file_path)``\n- ``send_file_url(recipient_id, file_url)``\n- ``send_action(recipient_id, action)``\n- ``send_raw(payload)``\n- ``get_user_info(recipient_id)``\n- ``send_quick_reply(recipient_id, text, buttons)``\n\nYou can see the code/documentation for there in\n`bot.py `__.\n\nThe functions return the full JSON body of the actual API call to\nFacebook.\n\nRegister for an Access Token\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou'll need to setup a `Facebook\nApp `__, Facebook Page, get the\nPage Access Token and link the App to the Page before you can really\nstart to use the Send/Receive service.\n\n`This quickstart guide should\nhelp `__\n\nInstallation\n~~~~~~~~~~~~\n\n.. code:: bash\n\n pip install Morrison \n or \n pip3 install Morrison\n\nUsage\n~~~~~\n\n.. code:: python\n\n from Morrison.bot import Bot\n\n bot = Bot(, [optional: app_secret])\n bot.send_text_message(recipient_id, message)\n\n**Note**: From Facebook regarding User IDs\n\n These ids are page-scoped. These ids differ from those returned from\n Facebook Login apps which are app-scoped. You must use ids retrieved\n from a Messenger integration for this page in order to function\n properly.\n\n If ``app_secret`` is initialized, an app\\_secret\\_proof will be\n generated and send with every request. Appsecret Proofs helps\n further secure your client access tokens. You can find out more on\n the `Facebook\n Docs `__\n\nSending a generic template message:\n'''''''''''''''''''''''''''''''''''\n\n `Generic Template\n Messages `__\n allows you to add cool elements like images, text all in a single\n bubble.\n\n.. code:: python\n\n from Morrison.bot import Bot\n from Morrison import Element\n bot = Bot()\n elements = []\n element = Element(title=\"test\", image_url=\"\", subtitle=\"subtitle\", item_url=\"http://arsenal.com\")\n elements.append(element)\n\n bot.send_generic_message(recipient_id, elements)\n\nOutput:\n\n.. figure:: https://cloud.githubusercontent.com/assets/68039/14519266/4c7033b2-0250-11e6-81a3-f85f3809d86c.png\n :alt: Generic Bot Output\n\n Generic Bot Output\n\nSending an image/video/file using an URL:\n'''''''''''''''''''''''''''''''''''''''''\n\n.. code:: python\n\n from Morrison.bot import Bot\n bot = Bot()\n image_url = \"http://url/to/image.png\"\n bot.send_image_url(recipient_id, image_url)\n\nTodo\n~~~~\n\n- Structured Messages\n- Receipt Messages\n- Quick Replies\n- Airlines\n- Tests!\n\nExample\n~~~~~~~\n\n.. figure:: https://cloud.githubusercontent.com/assets/68039/14516627/905c84ae-0237-11e6-918e-2c2ae9352f7d.png\n :alt: Screenshot of Echo Facebook Bot\n\n Screenshot of Echo Facebook Bot\n\nYou can find an example of an Echo Facebook Bot in ``examples/``\n\n.. |Build Status| image:: https://travis-ci.org/thecolumbialion/Morrison.svg?branch=master\n :target: https://travis-ci.org/thecolumbialion/Morrison", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/thecolumbialion/Morrison/archive/0.9.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thecolumbialion/Morrison", "keywords": "facebook messenger,python,wrapper,bot,messenger bot,python wrapper,chatbots", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Morrison", "package_url": "https://pypi.org/project/Morrison/", "platform": "", "project_url": "https://pypi.org/project/Morrison/", "project_urls": { "Download": "https://github.com/thecolumbialion/Morrison/archive/0.9.1.tar.gz", "Homepage": "https://github.com/thecolumbialion/Morrison" }, "release_url": "https://pypi.org/project/Morrison/0.9.51/", "requires_dist": null, "requires_python": "", "summary": "A clean Python Wrapper for Facebook Messenger Platform", "version": "0.9.51" }, "last_serial": 3311723, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "210b6b5bcfa57404f237c37921730a9e", "sha256": "c2ac5750834e2b887874d03a6b10d7c829b672f73a7c6ba28dc180ebfb7aa200" }, "downloads": -1, "filename": "Morrison-0.9.0.tar.gz", "has_sig": false, "md5_digest": "210b6b5bcfa57404f237c37921730a9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7128, "upload_time": "2017-11-05T05:24:38", "url": "https://files.pythonhosted.org/packages/0c/1a/94a9ce63e19a0b6b0a5e356ac80ad2cb60be83fdef79af8be94a4eda5822/Morrison-0.9.0.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "17820f30091f66c045211d8e9cf25db3", "sha256": "422b8187250e004e15f4cd5980921e142e351b1b41f4c80061323c66a967a4b5" }, "downloads": -1, "filename": "Morrison-0.9.2.tar.gz", "has_sig": false, "md5_digest": "17820f30091f66c045211d8e9cf25db3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7148, "upload_time": "2017-11-05T05:50:16", "url": "https://files.pythonhosted.org/packages/33/85/98b5cc1462c4d63a32723acf2f312ce51fc2e952a8e64f1106db3d2fbb6d/Morrison-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "7806f822b02ffcf81afd31445240a9d5", "sha256": "f6357e63a93e410c3894e67d985199a4b21c794040593c29d4b4aadd12c9d3ac" }, "downloads": -1, "filename": "Morrison-0.9.3.tar.gz", "has_sig": false, "md5_digest": "7806f822b02ffcf81afd31445240a9d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7158, "upload_time": "2017-11-06T14:04:49", "url": "https://files.pythonhosted.org/packages/95/fe/bf07ea01632cb339f403a24c9685dac6cf1f9a65bb63794de90834e311e0/Morrison-0.9.3.tar.gz" } ], "0.9.31": [ { "comment_text": "", "digests": { "md5": "4666864532e9d47a2eedd4016d5a7ec6", "sha256": "bfc5f964ab5626b6c40d5cacc32e009761241e1d9f07af9d1bb05a0f0502b797" }, "downloads": -1, "filename": "Morrison-0.9.31.tar.gz", "has_sig": false, "md5_digest": "4666864532e9d47a2eedd4016d5a7ec6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7147, "upload_time": "2017-11-06T14:11:16", "url": "https://files.pythonhosted.org/packages/6c/d4/9b06e18992c4f8274266ee641718eb559013e39d41ae5a1409c3eaa9b38b/Morrison-0.9.31.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "533b22c1e9006d808fb29ed1670059ca", "sha256": "9af6ebfb3e7d26a5eb06e20ffb473241c78998ce00430e7c5333a4e9dbf3cf52" }, "downloads": -1, "filename": "Morrison-0.9.4.tar.gz", "has_sig": false, "md5_digest": "533b22c1e9006d808fb29ed1670059ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7172, "upload_time": "2017-11-06T14:15:40", "url": "https://files.pythonhosted.org/packages/8d/17/1cff33ca149ad0c3bc1981e095a5c35fbf413f08e8015b2fdaaead073786/Morrison-0.9.4.tar.gz" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "88ccb87dc61dca7d636d275ff14bf271", "sha256": "37315e2e25a18a366ff2b36e3b3b93ff17b6ea9fd40499095bc7e410cb4f3909" }, "downloads": -1, "filename": "Morrison-0.9.5.tar.gz", "has_sig": false, "md5_digest": "88ccb87dc61dca7d636d275ff14bf271", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7216, "upload_time": "2017-11-07T04:17:23", "url": "https://files.pythonhosted.org/packages/22/e5/b176432c30ef14fb7819e42ef3b94a840cf86343e1b81dd0c3cf15f66135/Morrison-0.9.5.tar.gz" } ], "0.9.51": [ { "comment_text": "", "digests": { "md5": "6e1e63fdf8f1739c9ebae9a27c7bd21e", "sha256": "b2ee0d4b088f03edfd9a81f71b2dc20926fd0b0947ec11bb4f8b46e9468aee59" }, "downloads": -1, "filename": "Morrison-0.9.51.tar.gz", "has_sig": false, "md5_digest": "6e1e63fdf8f1739c9ebae9a27c7bd21e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7252, "upload_time": "2017-11-07T05:06:47", "url": "https://files.pythonhosted.org/packages/19/a3/e9b9138a89405176d58498d5faa2586462ba371166a023e94a400d52d132/Morrison-0.9.51.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "3f4e634fc36f72af10f2898c5d76db9b", "sha256": "149df174905bb2a6006076f6a99ee15efccd73c6ca87c44199d9bcefafc682ba" }, "downloads": -1, "filename": "Morrison-0.9.6.tar.gz", "has_sig": false, "md5_digest": "3f4e634fc36f72af10f2898c5d76db9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7251, "upload_time": "2017-11-07T05:16:04", "url": "https://files.pythonhosted.org/packages/5c/6b/784062c0e45c1dbcc125f66367c7d71a513f85140ffcf37061b431d9a20c/Morrison-0.9.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6e1e63fdf8f1739c9ebae9a27c7bd21e", "sha256": "b2ee0d4b088f03edfd9a81f71b2dc20926fd0b0947ec11bb4f8b46e9468aee59" }, "downloads": -1, "filename": "Morrison-0.9.51.tar.gz", "has_sig": false, "md5_digest": "6e1e63fdf8f1739c9ebae9a27c7bd21e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7252, "upload_time": "2017-11-07T05:06:47", "url": "https://files.pythonhosted.org/packages/19/a3/e9b9138a89405176d58498d5faa2586462ba371166a023e94a400d52d132/Morrison-0.9.51.tar.gz" } ] }