Class: WalmartApIs::MiscApi

Inherits:
BaseApi
  • Object
show all
Defined in:
lib/walmart_ap_is/apis/misc_api.rb

Overview

MiscApi

Constant Summary

Constants inherited from BaseApi

BaseApi::GLOBAL_ERRORS

Instance Attribute Summary

Attributes inherited from BaseApi

#config, #http_call_back

Instance Method Summary collapse

Methods inherited from BaseApi

#initialize, #new_parameter, #new_request_builder, #new_response_handler, user_agent, user_agent_parameters

Constructor Details

This class inherits a constructor from WalmartApIs::BaseApi

Instance Method Details

#new_requestApiResponse

TODO: type endpoint description here

Returns:

  • (ApiResponse)

    Complete http response with raw body and status code.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/walmart_ap_is/apis/misc_api.rb', line 11

def new_request
  @api_call
    .request(new_request_builder(HttpMethodEnum::GET,
                                 '/',
                                 Server::SERVER_1)
               .auth(Single.new('basic')))
    .response(new_response_handler
                .is_response_void(true)
                .is_api_response(true))
    .execute
end