Sha256: b33d3289b9237f2a7b9c4e1f863a4e2be981f13526b9f0925f14630a8d497338
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
# This is a Twitter API client demo built on top of OAuthClient require 'oauth_client' class TwitterOAuth < OAuthClient::Client site 'http://twitter.com' def show(username) json.get("/users/show/#{username}.json") end def friends(username) json.get("/friends/ids/#{username}.json") end def user(page=1) json.get("/statuses/user_timeline.json?page=#{page}") end def update(message) json.post('/statuses/update.json', :status => message) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oauth-client-0.1.0 | demos/twitter_oauth.rb |