{"id":26928725,"url":"https://github.com/ktanaka101/line-notify-api","last_synced_at":"2025-07-08T14:07:00.655Z","repository":{"id":116634147,"uuid":"187380576","full_name":"ktanaka101/line-notify-api","owner":"ktanaka101","description":"Client for LINE notifiy API by Crystal.","archived":false,"fork":false,"pushed_at":"2019-09-07T13:50:23.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T10:42:09.750Z","etag":null,"topics":["crystal","line"],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ktanaka101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-18T16:27:59.000Z","updated_at":"2019-11-21T10:48:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"7389513e-08be-43b9-ba89-529f94ac47a4","html_url":"https://github.com/ktanaka101/line-notify-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ktanaka101/line-notify-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktanaka101%2Fline-notify-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktanaka101%2Fline-notify-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktanaka101%2Fline-notify-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktanaka101%2Fline-notify-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktanaka101","download_url":"https://codeload.github.com/ktanaka101/line-notify-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktanaka101%2Fline-notify-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264284282,"owners_count":23584675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crystal","line"],"created_at":"2025-04-02T04:27:38.157Z","updated_at":"2025-07-08T14:07:00.650Z","avatar_url":"https://github.com/ktanaka101.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/ktanaka101/line-notify-api.svg?style=svg)](https://circleci.com/gh/ktanaka101/line-notify-api)\n\n# line-notify-api\n\nClient for LINE notifiy API by Crystal.\n\nThe specifications of the Line Notify API can be checked at the following URL.\n\nhttps://notify-bot.line.me/doc/en/\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     line_notify_api:\n       github: ktanaka101/line-notify-api\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n### Notify message\n\n#### Notify the specified string\n\n```crystal\nrequire \"line_notify_api\"\n\nclient = LineNotifyAPI::Client.new(YOUR_LINE_ACCESS_TOKEN)\nclient.notify(\"Hello, World!\")\n```\n\n### Notify image file\n\n#### Thumbnail\n\n```crystal\nrequire \"line_notify_api\"\n\nclient = LineNotifyAPI::Client.new(YOUR_LINE_ACCESS_TOKEN)\nclient.notify(\"Hello, World!\", thumbnail: \"https://example.com/tmb.jpg\", img_file: \"https://example.com/orig.jpg\")\n```\n\n#### Original size\n\n```crystal\nrequire \"line_notify_api\"\n\nclient = LineNotifyAPI::Client.new(YOUR_LINE_ACCESS_TOKEN)\nclient.notify(\"Hello, World!\", img_file: \"https://example.com/orig.jpg\")\n```\n\n```crystal\nrequire \"line_notify_api\"\n\nclient = LineNotifyAPI::Client.new(YOUR_LINE_ACCESS_TOKEN)\nclient.notify(\"Hello, World!\", img_file: \"/path/orig.jpg\")\n```\n\n### Notify sticker\n\n```crystal\nrequire \"line_notify_api\"\n\nclient = LineNotifyAPI::Client.new(YOUR_LINE_ACCESS_TOKEN)\nclient.notify(\"Hello, World!\", stk_pkg_id: 1, stk_id: 1)\n```\n\n### You can not use the client. In that case it has the same functionality as the client\n\n```crystal\nrequire \"line_notify_api\"\n\nLineNotifyAPI.notify(YOUR_LINE_ACCESS_TOKEN, \"Hello, World!\")\n```\n\n```crystal\nrequire \"line_notify_api\"\n\nLineNotifyAPI.notify(\n  YOUR_LINE_ACCESS_TOKEN,\n  \"Hello, World!\",\n  thumbnail: \"https://example.com/tmb.jpg\",\n  img_file: \"https://example.com/orig.jpg\"\n)\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/ktanaka101/line-notify-api/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [ktanaka101](https://github.com/ktanaka101) Kentaro Tanaka - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktanaka101%2Fline-notify-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktanaka101%2Fline-notify-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktanaka101%2Fline-notify-api/lists"}