Skip to content

Latest commit

 

History

History
executable file
·
54 lines (36 loc) · 1.47 KB

CountriesApi.md

File metadata and controls

executable file
·
54 lines (36 loc) · 1.47 KB

Swagger\Client\CountriesApi

All URIs are relative to https://api.insightly.com/v3.0

Method HTTP request Description
getCountries GET /Countries Gets a list of Countries used by Insightly

getCountries

\Swagger\Client\Model\APICountry[] getCountries()

Gets a list of Countries used by Insightly

This read only endpoint returns a list of the countries Insightly recognizes for use in addresses.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\CountriesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

try {
    $result = $apiInstance->getCountries();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CountriesApi->getCountries: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\Swagger\Client\Model\APICountry[]

Authorization

No authorization required

HTTP request headers

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

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