module Instagram::OAuth
Defines HTTP request methods
Public Instance Methods
get_access_token(code, options={})
click to toggle source
Return an access token from authorization
# File lib/instagram/oauth.rb, line 14 def get_access_token(code, options={}) options[:grant_type] ||= "authorization_code" options[:redirect_uri] ||= self.redirect_uri params = access_token_params.merge(options) post("/oauth/access_token/", params.merge(:code => code), signature=false, raw=false, unformatted=true, no_response_wrapper=true) end
Private Instance Methods
access_token_params()
click to toggle source
# File lib/instagram/oauth.rb, line 29 def access_token_params { :client_id => client_id, :client_secret => client_secret } end