{"id":14987163,"url":"https://github.com/hyperjumptech/whatsapp-business-sender","last_synced_at":"2025-04-11T23:22:26.234Z","repository":{"id":52602304,"uuid":"355822795","full_name":"hyperjumptech/whatsapp-business-sender","owner":"hyperjumptech","description":"Node.js library for sending message through Whatsapp Business API","archived":false,"fork":false,"pushed_at":"2021-04-24T01:33:56.000Z","size":5972,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-25T19:12:48.390Z","etag":null,"topics":["nodejs","typescript","whatsapp"],"latest_commit_sha":null,"homepage":"","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/hyperjumptech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCTS.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-08T08:27:23.000Z","updated_at":"2024-11-03T23:47:08.000Z","dependencies_parsed_at":"2022-08-28T13:01:22.198Z","dependency_job_id":null,"html_url":"https://github.com/hyperjumptech/whatsapp-business-sender","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjumptech%2Fwhatsapp-business-sender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjumptech%2Fwhatsapp-business-sender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjumptech%2Fwhatsapp-business-sender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjumptech%2Fwhatsapp-business-sender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperjumptech","download_url":"https://codeload.github.com/hyperjumptech/whatsapp-business-sender/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248157976,"owners_count":21057100,"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":["nodejs","typescript","whatsapp"],"created_at":"2024-09-24T14:14:11.678Z","updated_at":"2025-04-11T23:22:26.207Z","avatar_url":"https://github.com/hyperjumptech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Whatsapp Business Sender**\n\nWhatsapp Business Sender is the library for sending whatsapp for business message api using node js.\n\n## **Built With**\n\n- [Nodejs](https://nodejs.org/en/)\n- [Axios](https://github.com/axios/axios)\n- [Typescript](https://www.typescriptlang.org)\n\n## **Getting Started**\n\n### Prerequisites\n\n- Node.js v^14.14.37\n- npm v6.14.11\n\n### Installing\n\n```bash\nnpm install @hyperjumptech/whatsapp-business-sender\n```\n\n## **Libraries**\n\n### Exposed Libraries\n\n```\n  - loginUser\n  - checkContacts\n  - sendMessageTemplateText\n```\n\n### Descriptions\n\n**_loginUser_**\n\nThe method to run login-user endpoint in the Whatsapp Business API :\n\n- baseURL : Whatsapp business api server host\n- creds : Whatsapp business user credentials, consist of username and password\n\n_usage:_\n\n```js\nimport whatsapp from \"@hyperjumptech/whatsapp-business-sender\";\n\nconst resp = await whatsapp.loginUser(\"\u003cserver host\u003e\", {\n  username: \"\u003cwhatsapp username\u003e\",\n  password: \"\u003cwhatsapp password\u003e\",\n});\n```\n\n**_checkContacts_**\n\nThe method to run check-contacts endpoint in the Whatsapp Business API :\n\n- baseURL : Whatsapp business api server host\n- token : token from the user login\n- phones : string arrays of phone number using country code\n\n_usage:_\n\n```js\nimport whatsapp from \"@hyperjumptech/whatsapp-business-sender\";\n\nconst resp = await whatsapp.checkContacts(\"\u003cserver host\u003e\", \"\u003clogin token\u003e\", [\n  \"\u003cphone number\u003e\",\n  \"\u003cphone number\u003e\",\n  \"\u003cphone number\u003e\",\n]);\n```\n\n**_sendMessageTemplateText_**\n\nThe method to run send-message-template-text endpoint in Whatsapp Business API :\n\n- baseURL : Whatsapp business api server host\n- token : token from the user login\n- data : consist of phone number and template configurations\n\n_usage:_\n\n```js\nimport whatsapp from \"@hyperjumptech/whatsapp-business-sender\";\n\nconst resp = await whatsapp.sendMessageTemplateText(\n  \"\u003cserver host\u003e\",\n  \"\u003clogin token\u003e\",\n  {\n    phone: \"\u003cphone number with country code\u003e\",\n    template: {\n      namespace: \"\u003cMessage Template Namespace\u003e\",\n      name: \"\u003cMessage Template Element Name\u003e\",\n      language: {\n        policy: \"\u003cMessage Template Language Policy\u003e\",\n        code: \"\u003cMessage Template Language Code\u003e\",\n      },\n      components: [\n        {\n          type: \"body\",\n          parameters: [\n            {\n              type: \"\u003cparam type\u003e\",\n              text: \"\u003cparam value\u003e\",\n            },\n          ],\n        },\n      ],\n    },\n  }\n);\n```\n\n## Discussions\n\nIf you need help, want to give feedback, or have a great idea to improve this library, get involved! Let us know in the [Github discussions](https://github.com/hyperjumptech/whatsapp-business-sender/discussions).\n\nPlease abide by the [Contributor's Code of Conduct](CODE_OF_CONDUCTS.md)\n\n## License\n\n[MIT](./LICENSE.txt) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperjumptech%2Fwhatsapp-business-sender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperjumptech%2Fwhatsapp-business-sender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperjumptech%2Fwhatsapp-business-sender/lists"}