README.markdown in iprofiler-0.1.2 vs README.markdown in iprofiler-0.1.3
- old
+ new
@@ -1,16 +1,18 @@
# Iprofiler
Ruby wrapper for the [Iprofile API](http://www.iprofile.net/developer). Heavily inspired by [Wynn Netherland's](https://github.com/pengwynn) [LinkedIn gem](https://github.com/pengwynn/linkedin).
-Travis CI : [](http://travis-ci.org/kandadaboggu/iprofiler)
-
+Travis CI : [](http://travis-ci.org/kandadaboggu/iprofiler)
## Installation
Add the following line to your Gemfile.
gem 'iprofiler'
+
+Install the gem by using `bundler`
+
bundle install
## Usage
**Setting the connection parameters globally**
@@ -23,18 +25,17 @@
client = Iprofiler::Client.new
**Setting the connection parameters per connection**
- client = Iprofiler::Client.new ("foo", "bar", "http://localhost:3000")
+ client = Iprofiler::Client.new ("foo", "bar", "http://visitoriq2.iprofile.net")
**Invoking the API**
client = Iprofiler::Client.new
client.company_lookup(:company_name => "Bank Of America")
client.company_lookup(:ip_address => "10.10.10.2")
client.company_lookup(:domain => "bankofamerica.com")
- client.company_lookup(:url => "accipitercom.com")
**Error/ISP handling**
reply = client.company_lookup(:ip_address => "2.228.11.0")
if reply.status == :found