# line-notify-sdk
LINE Notify SDK for Pyrhon
## pip
```bash
$ pip install line-notify-sdk
```
## Usage
```python
from notify import Notify
n = Notify(token="YOUR_NOTIFY_TOKEN")
r = n.send_text("hello")
print(r.json())
# {'status': 200, 'message': 'ok'}
```
![notify](https://github.com/nanato12/line-notify-sdk/assets/49806926/4987186e-8427-452e-95b2-397695523476)
## Methods
| method | description |
| :- | :- |
| send_image_with_url(text, url) | Send image by specifying the image URL |
| send_image_with_local_path(text, path) | Send images by specifying the local image path |
| send_image(text, image) | Send images using BufferedReader or BytesIO |
| send_text(text) | Send text |
| send(files) | Customization request to notify (use this for anything other than images and text) |
| revoke() | Disable access token and remove notification settings |
| get_status() | Check linkage status |
| get_rate_limit() | Get the number of times the API can be called in an hour |
## Documentation
<https://notify-bot.line.me/doc/>
## License
```plain
MIT License
Copyright (c) 2024 nanato12
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
Raw data
{
"_id": null,
"home_page": "https://github.com/nanato12/line-notify-sdk",
"name": "line-notify-sdk",
"maintainer": "nanato12",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "admin@nanato12.info",
"keywords": "line line-notify line-notify-sdk",
"author": "nanato12",
"author_email": "admin@nanato12.info",
"download_url": "https://files.pythonhosted.org/packages/41/94/2f81fff3208a5fa2d95e1fe2c834cf90b6e773d4d44d66037bc8c1438eac/line_notify_sdk-1.0.tar.gz",
"platform": null,
"description": "# line-notify-sdk\n\nLINE Notify SDK for Pyrhon\n\n## pip\n\n```bash\n$ pip install line-notify-sdk\n```\n\n## Usage\n\n```python\nfrom notify import Notify\n\nn = Notify(token=\"YOUR_NOTIFY_TOKEN\")\nr = n.send_text(\"hello\")\n\nprint(r.json())\n# {'status': 200, 'message': 'ok'}\n```\n\n![notify](https://github.com/nanato12/line-notify-sdk/assets/49806926/4987186e-8427-452e-95b2-397695523476)\n\n## Methods\n\n| method | description |\n| :- | :- |\n| send_image_with_url(text, url) | Send image by specifying the image URL |\n| send_image_with_local_path(text, path) | Send images by specifying the local image path |\n| send_image(text, image) | Send images using BufferedReader or BytesIO |\n| send_text(text) | Send text |\n| send(files) | Customization request to notify (use this for anything other than images and text) |\n| revoke() | Disable access token and remove notification settings |\n| get_status() | Check linkage status |\n| get_rate_limit() | Get the number of times the API can be called in an hour |\n\n## Documentation\n\n<https://notify-bot.line.me/doc/>\n\n## License\n\n```plain\nMIT License\n\nCopyright (c) 2024 nanato12\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "LINE Notify SDK for Pyrhon",
"version": "1.0",
"project_urls": {
"Homepage": "https://github.com/nanato12/line-notify-sdk"
},
"split_keywords": [
"line",
"line-notify",
"line-notify-sdk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2398934949ba9e9616dd932939e7b0aa67a548ab28329fe1c62ae5b9595b1037",
"md5": "7743e4052540621f80eccf6d33ee855a",
"sha256": "de27dfaec0279a365d57d76be1b62b1a0bbcbbc25883ab24ca68ce9d7b0df0f2"
},
"downloads": -1,
"filename": "line_notify_sdk-1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7743e4052540621f80eccf6d33ee855a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4988,
"upload_time": "2024-05-28T16:40:44",
"upload_time_iso_8601": "2024-05-28T16:40:44.803798Z",
"url": "https://files.pythonhosted.org/packages/23/98/934949ba9e9616dd932939e7b0aa67a548ab28329fe1c62ae5b9595b1037/line_notify_sdk-1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "41942f81fff3208a5fa2d95e1fe2c834cf90b6e773d4d44d66037bc8c1438eac",
"md5": "cecd5949278208a3788f43853efbdc8b",
"sha256": "259cec4e446b2aedfabc431bc6fd663e9587f8de70060abecff71cc9538a24a7"
},
"downloads": -1,
"filename": "line_notify_sdk-1.0.tar.gz",
"has_sig": false,
"md5_digest": "cecd5949278208a3788f43853efbdc8b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4054,
"upload_time": "2024-05-28T16:40:46",
"upload_time_iso_8601": "2024-05-28T16:40:46.367132Z",
"url": "https://files.pythonhosted.org/packages/41/94/2f81fff3208a5fa2d95e1fe2c834cf90b6e773d4d44d66037bc8c1438eac/line_notify_sdk-1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-28 16:40:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nanato12",
"github_project": "line-notify-sdk",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "line-notify-sdk"
}