Sha256: d871d8eaeff36554864ba67d3362542b57bf21ae02bce543c935b41d61b3d29d

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

module RubyLokaliseApi
  # Client used to perform API requests with an OAuth2 access token
  class OAuth2Client < Client
    def initialize(token, params = {})
      super(token, params)
      @token_header = 'Authorization'
      @token = "Bearer #{@token}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lokalise-api-9.0.1 lib/ruby_lokalise_api/oauth2_client.rb
ruby-lokalise-api-9.0.0 lib/ruby_lokalise_api/oauth2_client.rb
ruby-lokalise-api-8.0.1 lib/ruby_lokalise_api/oauth2_client.rb