{ "info": { "author": "numberly", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "**********\nmatterhook\n**********\n\nSimply send messages to your Mattermost team using `incoming webhooks `_.\n\nGetting the API key\n===================\n- Login to your Mattermost team site and go to **Account Settings -> Integrations**\n- Next to **Incoming Webhooks** click **Edit**\n- Select the channel or private group to receive webhook payloads, then click **Add** to create the webhook\n- The API key is the last part of the URL (eg: u2x8rkfugj8zbqby9pw3huqnyc)\n\nUsage\n=====\nBasic usage\n-----------\n**matterhook** is very simple and efficient to use:\n\n.. code-block:: python\n\n from matterhook import WebHook\n\n # mandatory parameters are url and your webhook API key\n mwh = Webhook('https://mattermost.MYCOMPANY.com', 'API_KEY')\n\n # send a message to the API_KEY's channel\n mwh.send('coconut webhook message')\n\nAdvanced usage\n--------------\n\n.. code-block:: python\n\n from matterhook import WebHook\n\n # mandatory parameters are url and your webhook API key\n mwh = Webhook('https://mattermost.MYCOMPANY.com', 'API_KEY')\n\n # personalized bot name and icon\n mwh.username = 'cocobot'\n mwh.icon_url = 'http://3.bp.blogspot.com/-bEcLJDp_u7o/UJKPRGazv6I/AAAAAAAABGY/75z_6bbegao/s1600/coconut-oil-alzheimers-study.jpg'\n\n # send a message to the specified channel\n mwh.send('coconut is da thruth', channel='special_channel')\n\n # override the username for this message\n mwh.send('secret message', channel='special_channel', username='secret_user')\n\n # for convenience, you can also do this...\n mwh['incredible_channel'] = 'incredible message'\n\n # ...and even this\n mwh['incredible_channel'] = {'text': 'incredible message', username='incredible user'}", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/numberly/matterhook/tags", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/numberly/matterhook", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "matterhook", "package_url": "https://pypi.org/project/matterhook/", "platform": "any", "project_url": "https://pypi.org/project/matterhook/", "project_urls": { "Download": "https://github.com/numberly/matterhook/tags", "Homepage": "https://github.com/numberly/matterhook" }, "release_url": "https://pypi.org/project/matterhook/0.1/", "requires_dist": null, "requires_python": null, "summary": "Interact with Mattermost incoming webhooks easily.", "version": "0.1" }, "last_serial": 1987930, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9bae945ab3f803108c61b319b037929d", "sha256": "08238cc31649db728c3cd4403b09ccf34bc333bb473343631dfc15ece56f06d8" }, "downloads": -1, "filename": "matterhook-0.1.tar.gz", "has_sig": false, "md5_digest": "9bae945ab3f803108c61b319b037929d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3150, "upload_time": "2016-03-03T17:45:06", "url": "https://files.pythonhosted.org/packages/5a/57/f28c0890ad5d55093640d209db49ce7087f552f582c492655ce6d8ed9df7/matterhook-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9bae945ab3f803108c61b319b037929d", "sha256": "08238cc31649db728c3cd4403b09ccf34bc333bb473343631dfc15ece56f06d8" }, "downloads": -1, "filename": "matterhook-0.1.tar.gz", "has_sig": false, "md5_digest": "9bae945ab3f803108c61b319b037929d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3150, "upload_time": "2016-03-03T17:45:06", "url": "https://files.pythonhosted.org/packages/5a/57/f28c0890ad5d55093640d209db49ce7087f552f582c492655ce6d8ed9df7/matterhook-0.1.tar.gz" } ] }