{"id":48841538,"url":"https://github.com/gazf/deno-lineworks","last_synced_at":"2026-04-15T02:13:22.326Z","repository":{"id":261071124,"uuid":"806468498","full_name":"gazf/deno-lineworks","owner":"gazf","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-16T06:54:29.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-16T07:39:41.505Z","etag":null,"topics":["deno","lineworks","typescript"],"latest_commit_sha":null,"homepage":"https://jsr.io/@gazf/deno-lineworks","language":"TypeScript","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/gazf.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":"2024-05-27T08:59:27.000Z","updated_at":"2024-12-16T06:54:34.000Z","dependencies_parsed_at":"2024-12-09T03:28:14.841Z","dependency_job_id":"e99faf88-1b78-428d-bba8-500249256bc1","html_url":"https://github.com/gazf/deno-lineworks","commit_stats":null,"previous_names":["gazf/deno-lineworks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gazf/deno-lineworks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gazf%2Fdeno-lineworks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gazf%2Fdeno-lineworks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gazf%2Fdeno-lineworks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gazf%2Fdeno-lineworks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gazf","download_url":"https://codeload.github.com/gazf/deno-lineworks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gazf%2Fdeno-lineworks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31822930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["deno","lineworks","typescript"],"created_at":"2026-04-15T02:13:22.253Z","updated_at":"2026-04-15T02:13:22.312Z","avatar_url":"https://github.com/gazf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-lineworks\n\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/gazf/deno-lineworks/test.yml)](https://github.com/gazf/deno-lineworks/actions)\n[![GitHub](https://img.shields.io/github/license/gazf/deno-lineworks)](https://github.com/gazf/deno-lineworks/blob/main/LICENSE)\n[![JSR](https://jsr.io/badges/@gazf/deno-lineworks)](https://jsr.io/@gazf/deno-lineworks)\n[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/gazf/deno-lineworks)](https://github.com/gazf/deno-lineworks/pulse)\n[![GitHub last commit](https://img.shields.io/github/last-commit/gazf/deno-lineworks)](https://github.com/gazf/deno-lineworks/commits/main)\n\nThis package is for easy use of [LINE WORKS](https://line-works.com/).\n\n## Basic usage\n\n### Bot\n\n```typescript\nimport { Auth, Bot } from \"jsr:@gazf/deno-lineworks\";\n\nconst auth = new Auth({\n  clientId: \"YOUR_LINEWORKS_CLIENT_ID\",\n  clientSecret: \"YOUR_LINEWORKS_CLIENT_SECRET\",\n  serviceAccount: \"YOUR_LINEWORKS_SERVICE_ACCOUNT\",\n  privateKey: \"YOUR_LINEWORKS_PRIVATE_KEY\",\n}, [\"bot\"]);\n\nconst bot = new Bot(\n  \"YOUR_BOT_ID\",\n  \"YOUR_BOT_SECRET\",\n  auth,\n);\n\n// send messeage to user\nawait bot.send(\"users\", \"user_id\", {\n  content: {\n    type: \"text\",\n    text: \"Bot send message\",\n  },\n});\n\n// send messeage to channel\nawait bot.send(\"channels\", \"channel_id\", {\n  content: {\n    type: \"text\",\n    text: \"Bot send message\",\n  },\n});\n```\n\n### Bot Echoback (Use Hono)\n\n```typescript\nimport { Auth, Bot } from \"jsr:@gazf/deno-lineworks\";\nimport { Hono } from \"jsr:@hono/hono\";\n\nconst auth = new Auth({\n  clientId: \"YOUR_LINEWORKS_CLIENT_ID\",\n  clientSecret: \"YOUR_LINEWORKS_CLIENT_SECRET\",\n  serviceAccount: \"YOUR_LINEWORKS_SERVICE_ACCOUNT\",\n  privateKey: \"YOUR_LINEWORKS_PRIVATE_KEY\",\n}, [\"bot\"]);\n\nconst bot = new Bot(\n  \"YOUR_BOT_ID\",\n  \"YOUR_BOT_SECRET\",\n  auth,\n);\n\n// Setup 'MessageCallback'\nbot.on(\"message\", (c) =\u003e {\n  return c.reply({\n    content: {\n      type: \"text\",\n      text: `echoback: ${c.e.content.text}`,\n    },\n  });\n});\n\nconst app = new Hono();\napp.mount(\"/path/to/callback\", bot.fetch);\n\nDeno.serve(app.fetch);\n```\n\n## Authors\n\ngazf https://github.com/gazf\n\n## License\n\nDistributed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgazf%2Fdeno-lineworks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgazf%2Fdeno-lineworks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgazf%2Fdeno-lineworks/lists"}