lib/tw/client/auth.rb in tw-1.0.0 vs lib/tw/client/auth.rb in tw-1.0.1
- old
+ new
@@ -45,12 +45,12 @@
puts cmd = "open #{request_token.authorize_url}"
system cmd
print 'input PIN Number: '
verifier = STDIN.gets.strip
access_token = request_token.get_access_token(:oauth_verifier => verifier)
- self.auth('access_token' => access_token.token,
- 'access_secret' => access_token.secret)
- u = Twitter.user
+ client = Tw::Client.new.auth('access_token' => access_token.token,
+ 'access_secret' => access_token.secret)
+ u = client.user
Conf['users'][u.screen_name] = {
'access_token' => access_token.token,
'access_secret' => access_token.secret,
'id' => u.id
}