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

Version Path
squeejee-twitterland-0.0.1 lib/twitterland/twinfluence.rb
squeejee-twitterland-0.0.2 lib/twitterland/twinfluence.rb
squeejee-twitterland-0.1.1 lib/twitterland/twinfluence.rb
twitterland-0.1.0 lib/twitterland/twinfluence.rb
twitterland-0.1.1 lib/twitterland/twinfluence.rb
twitterland-0.0.1 lib/twitterland/twinfluence.rb
twitterland-0.0.2 lib/twitterland/twinfluence.rb
twitterland-0.0.3 lib/twitterland/twinfluence.rb