sendAPIRequest

open fun <T> sendAPIRequest(requestUrl: String, method: APIRequest.RequestMethod, headerKey: String, headerValue: T)

Method to send an api request with a single header

Parameters

requestUrl

: "URL" used in the api request

method

: method used in the api request

headerKey

: header key for the request

headerValue

: header value for the request


open fun sendAPIRequest(requestUrl: String, method: APIRequest.RequestMethod, headers: APIRequest.Headers)

Method to send an api request with different headers

Parameters

requestUrl

: "URL" used in the api request

method

: method used in the api request

headers

: headers for the request


open fun sendAPIRequest(requestUrl: String, method: APIRequest.RequestMethod, queryParams: APIRequest.Params)

Method to send an api request

Parameters

requestUrl

: "URL" used in the api request

method

: method used in the api request

queryParams

: query queryParams of the request


open fun <T> sendAPIRequest(requestUrl: String, method: APIRequest.RequestMethod, headerKey: String, headerValue: T, queryParams: APIRequest.Params)

Method to send an api request with a single header

Parameters

requestUrl

: "URL" used in the api request

method

: method used in the api request

headerKey

: header key for the request

headerValue

: header value for the request

queryParams

: query params of the request


open fun sendAPIRequest(requestUrl: String, method: APIRequest.RequestMethod, headers: APIRequest.Headers, queryParams: APIRequest.Params)

Method to send an api request with different headers

Parameters

requestUrl

: "URL" used in the api request

method

: method used in the api request

headers

: headers for the request

queryParams

: query params of the request


open fun sendAPIRequest(requestUrl: String, method: APIRequest.RequestMethod)

Method to send an api request

Parameters

requestUrl

: "URL" used in the api request

method

: method used in the api request