Skip to content

bugourmet/infobip-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infobip Sender

Simple Infobip outbound messaging library written in typescript

GitHub stars GitHub license GitHub forks GitHub issues GitHub pull requests GitHub last commit

Features 🚀

  • Supports sending all message types for SMS,WhatsApp and Viber channel.
  • Supports fetching purchased numbers for account and WhatsApp Templates for specified number with the capability.
  • Usage 💡

    install the package

    npm install infobip-sender

    Example:

    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
    {
        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 ✔️

  • implement Infobip Messaging API once it's out of Early Access
  • tests & improvements
  • add VOICE and RCS channels
  • Contributing 🤝

    Pull requests are welcome. If you have a suggestion open an issue with the tag "enhancement".

    License 📝

    MIT