All URIs are relative to https://tripletex.no/v2
| Method | HTTP request | Description |
|---|---|---|
| search | GET /municipality | [BETA] Get municipalities. |
\Tripletex\Model\ListResponseMunicipality search($include_payroll_tax_zones, $from, $count, $sorting, $fields)
[BETA] Get municipalities.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Tripletex\Api\MunicipalityApi(
// 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(),
$config
);
$include_payroll_tax_zones = true; // bool | Equals
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern
try {
$result = $apiInstance->search($include_payroll_tax_zones, $from, $count, $sorting, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MunicipalityApi->search: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| include_payroll_tax_zones | bool | Equals | [optional] |
| from | int | From index | [optional] |
| count | int | Number of elements to return | [optional] |
| sorting | string | Sorting pattern | [optional] |
| fields | string | Fields filter pattern | [optional] |
\Tripletex\Model\ListResponseMunicipality
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]