Sha256: 46eb29fcf1732daf5dee185cd8074f8f9e5173e941e9d68fe562dd5332cdc853
Contents?: true
Size: 794 Bytes
Versions: 4
Compression:
Stored size: 794 Bytes
Contents
require 'instagram' require 'omniauth-instagram' module Corkboard module Providers class Instagram < OmniAuth::Strategies::Instagram include Corkboard::Provider class << self def setup(config) settings = config.args.first ::Instagram.configure do |c| c.client_id = settings[:client_key] c.client_secret = settings[:client_secret] end [settings[:client_key], settings[:client_secret], { :scope => 'relationships' }] end def client(options = {}) # NOTE: we want a new one each time in order to stay trim, and in # case of any config changes... via a call to `#setup`. Corkboard::Clients::Instagram.new(options) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems