-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed friendship_exists? which was throwing mash error. Now returns o…
…bject if object is not mashable.
- Loading branch information
1 parent
b3b1481
commit 1e9def6
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters