diff options
author | Torsten Grote <t@grobox.de> | 2020-07-21 15:05:32 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-07-21 15:06:54 -0300 |
commit | 4bd0b7a75344b08cf5f84c360a28fc3f575b8501 (patch) | |
tree | 7c95adedfcdd2ee884170e35798210b3ccf04d80 /merchant-lib/src | |
parent | 18f311512aec7b828c87c3b297135482abd389a2 (diff) | |
download | taler-android-4bd0b7a75344b08cf5f84c360a28fc3f575b8501.tar.gz taler-android-4bd0b7a75344b08cf5f84c360a28fc3f575b8501.tar.bz2 taler-android-4bd0b7a75344b08cf5f84c360a28fc3f575b8501.zip |
[pos] config endpoint does not need authentication
Diffstat (limited to 'merchant-lib/src')
-rw-r--r-- | merchant-lib/src/main/java/net/taler/merchantlib/MerchantApi.kt | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/merchant-lib/src/main/java/net/taler/merchantlib/MerchantApi.kt b/merchant-lib/src/main/java/net/taler/merchantlib/MerchantApi.kt index 656b093..3406f78 100644 --- a/merchant-lib/src/main/java/net/taler/merchantlib/MerchantApi.kt +++ b/merchant-lib/src/main/java/net/taler/merchantlib/MerchantApi.kt @@ -21,17 +21,13 @@ import io.ktor.client.engine.okhttp.OkHttp import io.ktor.client.features.json.JsonFeature import io.ktor.client.features.json.serializer.KotlinxSerializer import io.ktor.client.request.get -import io.ktor.client.request.header -import io.ktor.http.HttpHeaders.Authorization class MerchantApi(private val httpClient: HttpClient) { constructor() : this(getDefaultHttpClient()) - suspend fun getConfig(baseUrl: String, apiKey: String = "sandbox"): ConfigResponse { - return httpClient.get("$baseUrl/config") { - header(Authorization, "ApiKey $apiKey") - } + suspend fun getConfig(baseUrl: String): ConfigResponse { + return httpClient.get("$baseUrl/config") } } |