Pointp.in API wrapper in Ruby.
gem install pointpin
or in your
Make sure you require the library.
You will need to set your API key before you can make requests to the Pointp.in API.
. = 'this-is-your-api-key'
You can then make requests to the
Get location data for an IP address:
location = .('55.111.555.555')
Please refer to the pointp.in docs for more information on the full response properties.
The gem uses Faraday for HTTP requests. It uses
Net::HTTP by default, but changing the adapter is pretty straightforward.
Copyright (c) 2014 Brian Flanagan. See LICENSE.txt for further details.