encode Additional Params
open fun <T> encodeAdditionalParams(mandatoryParams: String, extraParams: APIRequest.Params): String
Method to assemble a query string params of an "HTTP"
request
Return
params as String assembled e.g. ?param=mandatory1¶m2=mandatory2¶m2=valueParam2¶m3=valueParam3
Parameters
mandatory Params
: mandatory params of request (?param=mandatory1¶m2=mandatory2)
extra Params
: not mandatory params of request that have to be concatenated (¶m2=valueParam2¶m3=valueParam3)
Throws
when extra params in list is empty or is null