Class: Flickr::OAuth::RequestToken
- Inherits:
-
Token
- Object
- Token
- Flickr::OAuth::RequestToken
show all
- Defined in:
- lib/flickr/oauth.rb
Instance Attribute Summary
Attributes inherited from Token
#key, #secret
Instance Method Summary
collapse
Methods inherited from Token
#initialize, #to_a
Instance Method Details
#authorize_url(params = {}) ⇒ Object
77
78
79
80
81
82
83
|
# File 'lib/flickr/oauth.rb', line 77
def authorize_url(params = {})
url = URI.parse("http://www.flickr.com/services/oauth")
url.path += "/authorize"
query_params = {oauth_token: token}.merge(params)
url.query = query_params.map { |k, v| "#{k}=#{v}" }.join("&")
url.to_s
end
|
#get_access_token(oauth_verifier) ⇒ Object
89
90
91
|
# File 'lib/flickr/oauth.rb', line 89
def get_access_token(oauth_verifier)
Flickr::OAuth.get_access_token(oauth_verifier, self)
end
|