0.0
No commit activity in last 3 years
No release in over 3 years
This library lets you lookup a north american phone carrier.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

Description

Simple, fast, way to lookup a north american phone number carrier.

Quick Start

The easiest way to get started is to install it via RubyGems. You can do this easily:

$ gem install carrierlookup

or Gemfile:

gem 'carrierlookup'

You can now use the library to lookup carriers this way:

require 'carrierlookup'

@data = Carrier::Lookup::Perform.new
@data.lookup(
    :number => "1 (415) 453-1123"
)

Rest API

http://carrier.cardup.co/lookup?number=14154531123

Format

Number can be in any format:

4154531123
(415) 453-1123
1 (415) 453-1123

Response

Rest API:

json : success

{
    "status": 0
    "carrier": "TELUS Mobility",
    "city": "Winnipeg",
    "state": "",
    "createdAt": "2013-06-17 15:18:41 -0600"
}

json : not found

{ 
    "status" : -1
}

Gem:

hash : success

{
    "carrier"=>"NEW CINGULAR WIRELESS PCS, LLC", "city"=>"JUNEAU", "state" => "AK", createdAt"=>"2013-06-17 15:06:50 -0600"
}

hash : not found

nil

License

See the included LICENSE file for details.