https://github.com/bugourmet/infobip-sender
Infobip outbound messaging library
https://github.com/bugourmet/infobip-sender
infobip infobip-api infobip-library infobip-sdk infobip-typescript library messaging sdk sms typescript viber whatsapp
Last synced: 3 months ago
JSON representation
Infobip outbound messaging library
- Host: GitHub
- URL: https://github.com/bugourmet/infobip-sender
- Owner: bugourmet
- Created: 2023-09-01T22:41:42.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-22T18:17:15.000Z (8 months ago)
- Last Synced: 2025-02-22T19:25:58.953Z (8 months ago)
- Topics: infobip, infobip-api, infobip-library, infobip-sdk, infobip-typescript, library, messaging, sdk, sms, typescript, viber, whatsapp
- Language: TypeScript
- Homepage:
- Size: 347 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Infobip Sender
Simple Infobip outbound messaging library written in typescript
[](https://github.com/runtimeterrorist/infobip-sender/stargazers)
[](https://github.com/runtimeterrorist/infobip-sender/blob/master/LICENSE)
[](https://github.com/runtimeterrorist/infobip-sender/network/members)
[](https://github.com/runtimeterrorist/infobip-sender/issues)
[](https://github.com/runtimeterrorist/infobip-sender/pulls)
[](https://github.com/runtimeterrorist/infobip-sender/commits/master)Features 🚀
Usage 💡
install the package
`npm install infobip-sender`
Example:
```ts
import { InfobipMessageService } from "infobip-sender";
const config = { apiKey: "YourApiKey" };
// Create an instance with your configuration
const messagingService = new InfobipMessageService(config);
//use sendSms() method to s end a single or bulk sms message
const smsMessage = await messagingService.sms.sendSMS(
"YourSenderNumberHere",
"RecipientPhoneNumber",
"Message"
);
const bulkSmsMessages = await messagingService.sms.sendSMS(
"YourSenderNumberHere",
["RecipientPhoneNumber1", "RecipientPhoneNumber2"],
"Message"
);
```
...
Messaging Service Configuration
```ts
{
apiKey: string;
piIntegrator?: string;
piPlatform?: string;
baseUrl?: string;
notifyUrl?: string;
}
```
⚠️ IMPORTANT NOTE: The library does not include built-in logging nor error-handling mechanisms,responsibility for implementing such features remains on the end user.
For more info refer to Infobip API Documentation
TODO ✔️
Contributing 🤝
Pull requests are welcome. If you have a suggestion open an issue with the tag "enhancement".
License 📝
MIT