modules/check_in/app/services/chip_api/request.rb
##
# Make a HTTP POST call to the Chip API in order to
# check-in a user for a specific appointment
#
# @param opts [Hash]
# @return [Faraday::Response]
#
Make a HTTP POST call to the Chip API in order to
check-in a user for a specific appointment
Make a HTTP POST call to the Chip API in order to check - in a user for a specific appointment
def post(opts = {})
      with_monitoring do
        connection.post(opts[:path]) do |req|
          prefix = opts[:access_token] ? 'Bearer' : 'Basic'
          suffix = opts[:access_token] || opts[:claims_token]
          req.headers = headers.merge('Authorization' => "#{prefix} #{suffix}")
        end
      end
    end
def post ( opts = { } ) with_monitoring do connection . post ( opts [ :path ] ) do | req | prefix = opts [ :access_token ] ? 'Bearer' : 'Basic' suffix = opts [ :access_token ] || opts [ :claims_token ] req . headers = headers . merge ( 'Authorization' => "#{prefix} #{suffix}" ) end end end
Make a HTTP POST call to the Chip API in order to
check-in a user for a specific appointment
Make a HTTP POST call to the Chip API in order to check - in a user for a specific appointment
None
Faraday::Response
opts
None