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.
gem install open_market
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
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.