aboutsummaryrefslogtreecommitdiff
path: root/merchant-lib/src
diff options
context:
space:
mode:
Diffstat (limited to 'merchant-lib/src')
-rw-r--r--merchant-lib/src/main/java/net/taler/merchantlib/MerchantApi.kt8
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")
}
}