Sha256: 640b1a98b74d6f2f071dc5de2e87a3dda4d014a882f997c09f6109c81ebae3aa
Contents?: true
Size: 869 Bytes
Versions: 11
Compression:
Stored size: 869 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) 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={}) Mash.new Twinfluence.post("/api_search.php", :body => {:user => @username, :pwd => @password}.merge(options)) end end end
Version data entries
11 entries across 11 versions & 2 rubygems