Class: Instagramp::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/instagramp/auth.rb

Overview

GET Auth Link Facebook

Defined Under Namespace

Classes: ForceUseRails, NotFoundConfigFile

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details



20
21
22
# File 'lib/instagramp/auth.rb', line 20

def self.link(config)
  new.call(config)
end

Instance Method Details

#call(config) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/instagramp/auth.rb', line 11

def call(config)
  begin
    link          = "#{Instagram::Post::LINK}client_id=#{config[:client_id]}&redirect_uri=#{config[:redirect_uri]}&scope=#{config[:scope]}"
  rescue
    NotFoundConfigFile.new('Please set config file in initialize path.')
  end
end