Skip to content

fishman/peerindex

Repository files navigation

The Peerindex Ruby Gem

A Ruby wrapper for the Peerindex API

gem install peerindex

Howto

This version no longer requires that you explicitly pass the authenticated user's ID or screen name.

Peerindex.configure do |config|
  config.api_key = YOUR_API_KEY
end

Peerindex.user("rjzzleep")

You can improve performance by preloading a faster JSON or XML parsing library. By default, the JSON will be parsed with okjson and XML will be parsed with REXML. For faster JSON parsing, we recommend yajl-ruby and for faster XML parsing, we recommend libxml-ruby or nokogiri.

require "rubygems"
require "peerindex"

# Get a user's peerindex
puts Peerindex.user("rjzzleep").peerindex

Copyright (c) 2011 Reza Jelveh This is heavily based on John Nunemaker, Wynn Netherland, Erik Michaels-Ober, Steve Richert twitter gem so they probably own the copyright as well See LICENSE for details.

About

peerindex ruby gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages