Sha256: 53510bb195d6dae3615d3941aa3d1017decfd4212338b4562a2c8e1cae599e3d
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 Bytes
Contents
module Twitterland class Twinfluence include HTTParty base_uri 'twinfluence.com' format :xml def initialize(username, password) @username = username @password = password end # Get Twinfluence analysis of a user # # Twitterland::Twinfluence.new(username,password) def user(id, cacheonly=true) Hashie::Mash.new Twinfluence.post("/api_user.php", :body => {:id => id, :user => @username, :pwd => @password, :cacheonly => cacheonly}) end # Search Twinfluence users # # possible options: # des: description # loc: location # sort, limit, minfollows # # Twitterland::Twinfluence.search(username,password) def search(id, options={}) Hashie::Mash.new Twinfluence.post("/api_search.php", :body => {:user => @username, :pwd => @password}.merge(options)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitterland-0.4.6 | lib/twitterland/twinfluence.rb |