public
Description: compete API for http://developer.compete.com/
Homepage:
Clone URL: git://github.com/simplificator/compete.git
name age message
file .document Fri May 01 15:30:32 -0700 2009 init [pascalbetz]
file .gitignore Fri May 01 15:30:32 -0700 2009 init [pascalbetz]
file LICENSE Sat May 02 02:30:59 -0700 2009 readme [pascalbetz]
file README.rdoc Sun May 03 08:05:25 -0700 2009 cosmetics in README [pascalbetz]
file Rakefile Fri May 01 15:30:32 -0700 2009 init [pascalbetz]
file VERSION.yml Sun May 03 07:24:54 -0700 2009 Version bump to 0.2.0 [pascalbetz]
file compete.gemspec Sun May 03 07:26:57 -0700 2009 Regenerated gemspec for version 0.2.0 [pascalbetz]
directory lib/ Sun May 03 07:25:10 -0700 2009 tests and some fixes [pascalbetz]
directory test/ Sun May 03 07:25:10 -0700 2009 tests and some fixes [pascalbetz]
README.rdoc

compete

A wrapper for compete.com API. Can be used to look up information (trust level, rankings, visitors) for a domain.

Requirements

You’ll need an account at developer.compete.com/ Depending on number of requests you make you’ll need to pay. We (Simplificator) have no connection with compete.com!

Usage

Sign up at developer.compete.com/ and get an API key Install the simplificator-compete gem.

Look at compete.rb to see available information (i.e. metrics_ranking, metrics_link, …)


  require 'rubygems'
  require 'simplificator-compete'
  COMPETE_API_KEY = 'your api key'

  info = Compete.for_domain('simplificator.com')
  if info.data_available?
    puts "Ranking is: #{info.metrics_ranking}"
  else
    puts "no data"
  end

Copyright

Copyright © 2009 Simplificator GmbH. See LICENSE for details.