Method: MediumSdk::Connection::AuthCode#initialize
- Defined in:
- lib/medium_sdk/connection/auth_code.rb
#initialize(opts = {}) ⇒ AuthCode
Returns a new instance of AuthCode.
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/medium_sdk/connection/auth_code.rb', line 22 def initialize(opts = {}) init_attributes @client_id = opts[:client_id] if opts.key? :client_id @client_secret = opts[:client_secret] if opts.key? :client_secret @oauth_redirect_uri = opts[:redirect_uri] if opts.key? :redirect_uri @scope = opts[:scope] if opts.key? :scope @instance_headers = opts[:instance_headers] if opts.key? :instance_headers @oauth2client = new_oauth2_client @authcode_client = new_auth_code_client end |