All URIs are relative to https://api.insightly.com/v3.1
Method | HTTP request | Description |
---|---|---|
getCountries | GET /Countries | Gets a list of Countries used by Insightly |
\SternerStuff\InsightlyPHP\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.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SternerStuff\InsightlyPHP\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;
}
?>
This endpoint does not need any parameter.
\SternerStuff\InsightlyPHP\Model\APICountry[]
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]