FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Numverify API Module

v1.0.0+0002 Public

Numverify API Coldbox Module

Coldbox module for using the Numverify phone number validation API.

Installation

This library can be installed as a ColdBox Module. Install with a simple CommandBox command:

$ box install numverify

Alternatively the git repository can be cloned into the desired directory.

ColdBox Module

To use, add the init arguments to the moduleSettings struct in config/Coldbox.cfc:

moduleSettings = {
    numverify: {
        accessKey: ''
    }
}

You can then leverage the library via the injection DSL: [email protected]:

property name="Numverify" inject="[email protected]";

Getting Started

// To validate a phone number with country code
validationResult = Numverify.validate("12075551212");
// OR without, but providing country ID
validationResult = Numverify.validate("2075551212","US");

// list country codes with dialling prefix
countries = Numverify.countries();

numverify is modeled after the official NumVerify API. All responses are JSON and converted to structs by the module. Documentation is here: https://numverify.com/documentation

A free account is required to get an access key.

Dependencies (0)


Dev Dependencies (0)


 

  •   Sean Daniels
  • Published
  • 1.0.0+0002 is the latest of 1 release(s)
    Published
  • Published on {{ getFullDate("Jan 14 2021 03:01 PM GMT") }}

$ box install numverify-new

No collaborators yet.
  • {{ getFullDate("Jan 14 2021 03:01 PM GMT") }}
  • {{ getFullDate("Jan 14 2021 03:01 PM GMT") }}
  • 255
  • 0
  • 0