{"id":20364353,"url":"https://github.com/bandwidth/node-messaging","last_synced_at":"2025-06-30T09:37:45.888Z","repository":{"id":35823859,"uuid":"218342699","full_name":"Bandwidth/node-messaging","owner":"Bandwidth","description":"Node SDK for Bandwidth Messaging","archived":false,"fork":false,"pushed_at":"2025-03-29T04:43:40.000Z","size":1733,"stargazers_count":5,"open_issues_count":4,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-12T04:44:05.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dev.bandwidth.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bandwidth.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-29T17:18:15.000Z","updated_at":"2025-02-13T12:50:20.000Z","dependencies_parsed_at":"2023-02-14T02:15:47.042Z","dependency_job_id":"0de0d564-babe-43ad-9584-0049555877d8","html_url":"https://github.com/Bandwidth/node-messaging","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/Bandwidth/node-messaging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fnode-messaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fnode-messaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fnode-messaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fnode-messaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bandwidth","download_url":"https://codeload.github.com/Bandwidth/node-messaging/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fnode-messaging/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262748977,"owners_count":23358310,"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":[],"created_at":"2024-11-15T00:11:23.839Z","updated_at":"2025-06-30T09:37:45.872Z","avatar_url":"https://github.com/Bandwidth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# $${\\color{orange}This \\space package  \\space has  \\space been  \\space deprecated}$$\r\n# Please use the new [node-sdk](https://github.com/Bandwidth/node-sdk)\r\n## The new package is on NPM as [bandwidth-sdk](https://www.npmjs.com/package/bandwidth-sdk) (`npm i bandwidth-sdk`)\r\n\r\n# Bandwidth Node Messaging SDK\r\n\r\n[![Test](https://github.com/Bandwidth/node-messaging/actions/workflows/test.yml/badge.svg)](https://github.com/Bandwidth/node-messaging/actions/workflows/test.yml)\r\n\r\n|    **OS**    | **Node** |\r\n|:------------:|:---:|\r\n| Windows 2022 | 12, 14, 16 |\r\n| Windows 2025 | 12, 14, 16 |\r\n| Ubuntu 22.04 | 12, 14, 16 |\r\n| Ubuntu 24.04 | 12, 14, 16 |\r\n\r\nNote: As of version 3.0.0, this package has been upgraded to TypeScript\r\n\r\n## Getting Started\r\n\r\n### Installation\r\n\r\n```\r\nnpm install @bandwidth/messaging\r\n```\r\n\r\n### Initialize\r\n\r\n```js\r\nimport { Client, ApiController, MessageRequest } from '@bandwidth/messaging';\r\nconst client = new Client({\r\n    basicAuthUserName: \"username\",\r\n    basicAuthPassword: \"password\"\r\n});\r\n\r\nconst controller = new ApiController(client);\r\nconst accountId = \"12345\";\r\n```\r\n\r\n### Send A Text Message\r\n```js\r\nconst applicationId = \"3-a-b-c\";\r\nconst toPhoneNumber = \"+15554443333\";\r\nconst fromPhoneNumber = \"+15553334444\";\r\nconst text = \"Hello world\";\r\nconst body = {\r\n    applicationId: applicationId,\r\n    to: [toPhoneNumber],\r\n    from: fromPhoneNumber,\r\n    text: text \r\n};\r\n\r\nconst createMessageResponse = await controller.createMessage(accountId, body);\r\nconsole.log(createMessageResponse.result.id);\r\n```\r\n\r\n## Supported Node Versions\r\n\r\nThis package can be used with Node \u003e= 10\r\n\r\n## Documentation\r\n\r\nDocumentation for this package can be found at https://dev.bandwidth.com/sdks/node.html\r\n\r\n## Credentials\r\n\r\nInformation for credentials for this package can be found at https://dev.bandwidth.com/guides/accountCredentials.html\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbandwidth%2Fnode-messaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbandwidth%2Fnode-messaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbandwidth%2Fnode-messaging/lists"}