This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
compete /
| name | age | message | |
|---|---|---|---|
| |
.document | Fri May 01 15:30:32 -0700 2009 | |
| |
.gitignore | Fri May 01 15:30:32 -0700 2009 | |
| |
LICENSE | Sat May 02 02:30:59 -0700 2009 | |
| |
README.rdoc | ||
| |
Rakefile | Fri May 01 15:30:32 -0700 2009 | |
| |
VERSION.yml | ||
| |
compete.gemspec | ||
| |
lib/ | ||
| |
test/ |
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.








