Sha256: b5b13e8e7999d1a165c21531434088dfdc65b1032520b472feb7e40adeb46fe4
Contents?: true
Size: 664 Bytes
Versions: 8
Compression:
Stored size: 664 Bytes
Contents
module Twitterland class Twinfluence include HTTParty base_uri 'twinfluence.com' format :xml def initialize(username, password) @username = username @password = password end def user(id, cacheonly=true) Mash.new Twinfluence.post("/api_user.php", :body => {:id => id, :user => @username, :pwd => @password, :cacheonly => cacheonly}) end # possible options: # des: description # loc: location # sort, limit, minfollows def search(id, options={}) Mash.new Twinfluence.post("/api_search.php", :body => {:user => @username, :pwd => @password}.merge(options)) end end end
Version data entries
8 entries across 8 versions & 2 rubygems