encodeAdditionalParams

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

mandatoryParams

: mandatory params of request (?param=mandatory1¶m2=mandatory2)

extraParams

: 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