{ "info": { "author": "Jin Kim", "author_email": "golbin@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# LINE Notify\n\nA Simple Wrapper for LINE Messenger Notify\n\n## Prerequisites\n\nYou have to generate access token on below site.\n\nhttps://notify-bot.line.me\n\n## Installation\n\n```bash\npip install line_notify\n```\n\n## Usage\n\n```python\nfrom line_notify import LineNotify\n\nACCESS_TOKEN = \"L52Z9PAH4kZ82JHSkfjTQ234c1cY2iAKdafaWYv77Ad\"\n\nnotify = LineNotify(ACCESS_TOKEN)\n\nnotify.send(\"Text test\")\nnotify.send(\"Image test\", image_path='./test.jpg')\nnotify.send(\"Sticker test\", sticker_id=283, package_id=4)\nnotify.send(\"Image & Sticker test\", image_path='./test.jpg', sticker_id=283, package_id=4)\n```\n\nIf you set the name, it send a message with the name; `[NAME] blah blah..`\n\n```python\nnotify = LineNotify(ACCESS_TOKEN, name=\"CLAIR\")\n\nnotify.send(\"Text test\") # [CLAIR] Test test\n```\n\nIf you set LineNotify off, then it won't send a message. (Default is `on`)\n\n```python\nnotify.off()\nnotify.send(\"It won't be sent.\")\n\nnotify.on()\nnotify.send(\"It will be sent.\")\n```\n\nAlso if you set `ACCESS_TOKEN=None`, it won't send a message.\n\n```python\nACCESS_TOKEN = None\n\nnotify = LineNotify(ACCESS_TOKEN)\n\nnotify.send(\"It won't be sent.\")\n```\n\n## Reference\n\n[LINE Notify API Document](https://notify-bot.line.me/doc/)\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/golbin/line-notify", "keywords": "line", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "line_notify", "package_url": "https://pypi.org/project/line_notify/", "platform": "", "project_url": "https://pypi.org/project/line_notify/", "project_urls": { "Homepage": "https://github.com/golbin/line-notify" }, "release_url": "https://pypi.org/project/line_notify/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "A Simple Wrapper for LINE Messenger Notify", "version": "0.1.4" }, "last_serial": 3444244, "releases": { "0.1.4": [ { "comment_text": "", "digests": { "md5": "f4bbe2e6fb721ac547618d32af3a015e", "sha256": "701469226632e58809e1388e8c2a95f0d5c6cb7730f2297566e6dea1db347a0f" }, "downloads": -1, "filename": "line_notify-0.1.4.tar.gz", "has_sig": false, "md5_digest": "f4bbe2e6fb721ac547618d32af3a015e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2204, "upload_time": "2017-12-27T01:12:51", "url": "https://files.pythonhosted.org/packages/02/65/650411697b833b3a41614d70352ee08a71a78257116a117d377be6f20fd7/line_notify-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f4bbe2e6fb721ac547618d32af3a015e", "sha256": "701469226632e58809e1388e8c2a95f0d5c6cb7730f2297566e6dea1db347a0f" }, "downloads": -1, "filename": "line_notify-0.1.4.tar.gz", "has_sig": false, "md5_digest": "f4bbe2e6fb721ac547618d32af3a015e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2204, "upload_time": "2017-12-27T01:12:51", "url": "https://files.pythonhosted.org/packages/02/65/650411697b833b3a41614d70352ee08a71a78257116a117d377be6f20fd7/line_notify-0.1.4.tar.gz" } ] }