Sha256: 91827bc6d4f3e3311934b5ce4324b11d5b3c5cb47788691f2006a8c016d62c93

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

require 'faraday'

module Graham
  # Your code goes here...
  class Configuration
    attr_accessor :client_id, :client_secret, :redirect_uri, :access_token, :conn

    def initialize
      @conn = Faraday.new "https://api.instagram.com"
    end
    
    def signin_uri
      "https://api.instagram.com/oauth/authorize/?client_id=" + @client_id + "&redirect_uri=" + @redirect_uri + "&response_type=code" + "&scope=" + "basic+public_content+comments+relationships+likes+follower_list"
    end  
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
graham-instagram-0.1.1 lib/graham/configuration.rb
graham-instagram-0.1.0 lib/graham/configuration.rb