Sha256: a6d51c74d3d44afcfb7d629ec305e100cf0bb55c7b3971dd068b09fe200b4907

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

require 'json'

module Minty
  module Mixins
    module Headers
      def client_headers(client_id, client_secret, application_id)
        {
          'Content-Type' => 'application/json',
          'Authorization' => "Bearer #{client_secret}",
          'API-MINTY-CLIENT-ID' => client_id,
          'API-MINTY-APPLICATION-ID' => application_id,
          'Accept' => 'application/json'
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minty-1.0.1 lib/minty/mixins/headers.rb
minty-1.0.0 lib/minty/mixins/headers.rb