class OmniAuth::InstagramGraph::LongLivedClient
Constants
- TOKEN_URL
Public Class Methods
new(client_id, client_secret, options = {})
click to toggle source
Calls superclass method
# File lib/omniauth/instagram-graph/long_lived_client.rb, line 8 def initialize(client_id, client_secret, options = {}) options = { site: 'https://graph.instagram.com', authorize_url: nil, token_url: TOKEN_URL, token_method: :get, }.merge!(options) super(client_id, client_secret, options) end
Public Instance Methods
get_token(params = {})
click to toggle source
Calls superclass method
# File lib/omniauth/instagram-graph/long_lived_client.rb, line 19 def get_token(params = {}) params = {grant_type: 'ig_exchange_token', client_secret: secret}.merge!(params) super(params, {}, LongLivedToken) end