Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Latest commit

 

History

History
55 lines (37 loc) · 1.15 KB

BalanceApi.md

File metadata and controls

55 lines (37 loc) · 1.15 KB

BalanceApi

All URIs are relative to https://eu1.locationiq.com/v1

Method HTTP request Description
balance GET /balance.php

balance

Balance balance()

The Balance API provides a count of request credits left in the user's account for the day. Balance is reset at midnight UTC everyday (00:00 UTC).

Example

// Import classes:
//import locationiq.infrastructure.*
//import locationiq.models.*

val apiInstance = BalanceApi()
try {
    val result : Balance = apiInstance.balance()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling BalanceApi#balance")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BalanceApi#balance")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

Balance

Authorization

Configure key: ApiClient.apiKey["key"] = "" ApiClient.apiKeyPrefix["key"] = ""

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json