6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/robin/pin_authenticator.rb', line 6
def self.authorize_url
consumer = OAuth::Consumer.new(Robin::Config.key,
Robin::Config.secret,
{ :site => 'http://twitter.com/',
:request_token_path => '/oauth/request_token',
:access_token_path => '/oauth/access_token',
:authorize_path => '/oauth/authorize' })
begin
@request_token = consumer.get_request_token
rescue Net::HTTPRetriableError => e
@request_token = consumer.get_request_token
end
@request_token.authorize_url()
end
|