JSPM

messagemedia-lookups-sdk

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q30335F
  • License Apache-2.0

The MessageMedia Lookups API provides a number of endpoints for validating the phone numbers you’re sending to by checking their validity, type and carrier records.

Package Exports

  • messagemedia-lookups-sdk

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (messagemedia-lookups-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MessageMedia Lookups NodeJS SDK

The MessageMedia Lookups API provides a number of endpoints for validating the phone numbers you’re sending to by checking their validity, type and carrier records.

⭐️ Installing via NPM

Now install messagemedia-messages-sdk via npm by using:

  • npm install messagemedia-lookups-sdk

Alternatively, add the following to the dependencies section of your package.json:

  • "messagemedia-lookups-sdk": "^1.0.0"

🎬 Get Started

It's easy to get started. Simply enter the API Key and secret you obtained from the MessageMedia Developers Portal into the code snippet below and a mobile number you wish to send to.

👀 Lookup a number

const sdk = require('messagemedia-lookups-sdk');

// Configuration parameters and credentials
lib.Configuration.basicAuthUserName = "YOUR_API_KEY"; // The username to use with basic authentication
lib.Configuration.basicAuthPassword = "YOUR_API_SECRET"; // The password to use with basic authentication

var controller = lib.LookupsController;

var phoneNumber = "YOUR_MOBILE_NUMBER";
var options = 'carrier,type';

controller.getLookupAPhoneNumber(phoneNumber, options, function(error, response, context) {
  console.log(response)
});

📕 Documentation

The NodeJS SDK Documentation can be viewed here

😕 Got Stuck?

Please contact developer support at developers@messagemedia.com or check out the developer portal at developers.messagemedia.com