public
Description: API wrapper for Twitter and Twitter Search API's
Homepage: http://twitter.rubyforge.org/
Clone URL: git://github.com/jnunemaker/twitter.git
Click here to lend your support to: twitter and make a donation at www.pledgie.com !
pengwynn (author)
Thu Nov 05 18:51:40 -0800 2009
commit  a582086d84075e850cb619be1bda8a4fe3f52df8
tree    bf2f89383f2a67017403b7e6c4bdc644005b532f
parent  cb0f9047075ae54e4d428b0a37ab93dd6d7f2c60
twitter / examples / friendship_existance.rb
100644 13 lines (9 sloc) 0.476 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
require File.join(File.dirname(__FILE__), 'helpers', 'config_store')
require 'pp'
 
config = ConfigStore.new("#{ENV['HOME']}/.twitter")
 
oauth = Twitter::OAuth.new(config['token'], config['secret'])
oauth.authorize_from_access(config['atoken'], config['asecret'])
 
client = Twitter::Base.new(oauth)
 
puts client.friendship_exists?('jnunemaker', 'orderedlist')
puts client.friendship_exists?('jnunemaker', 'biz')