Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenMarket integration kit

OpenMarket integration kit is intended to help working with the OpenMarket API from your Ruby applications.

To use the kit, you need to be a registered user of OpenMarket (http://openmarket.com) and have Account ID and Account Password.

Installation

gem install open_market

Usage

om = OpenMarket::Base.new('xxx-xxx-xxx-xxxxx', '<your_account_password>')

# Looking up details on the phone number
res = om.preview('+16123327465')
if res.success?
  res.destination         # hash of destination details
  res.operator            # hash of operator details
  res.location            # hash of geographical data
else
  res.error[:code]        # error code
  res.error[:description] # details error description
  res.error[:resolution]  #
end

License

OpenMarket Integration Kit is Copyright © 2013 Aleksey Gureiev and Recess Mobile.

It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.

About

OpenMarket integration kit

Resources

Stars

2 stars

Watchers

15 watching

Forks

Releases

Packages

Contributors

Languages