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

Latest commit

 

History

History
61 lines (40 loc) · 1.36 KB

BalanceApi.md

File metadata and controls

61 lines (40 loc) · 1.36 KB

LocationIq::BalanceApi

Load the API package

use LocationIq::Object::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

use Data::Dumper;
use LocationIq::BalanceApi;
my $api_instance = LocationIq::BalanceApi->new(

    # Configure API key authorization: key
    api_key => {'key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'key' => 'Bearer'},
);


eval { 
    my $result = $api_instance->balance();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BalanceApi->balance: $@\n";
}

Parameters

This endpoint does not need any parameter.

Return type

Balance

Authorization

key

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]