Infocenter-TEST
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/unic/discoverswiss.infocenter.git"
}
],
"require": {
"unic/discoverswiss.infocenter": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Region to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->administrativeAreaRegion($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->administrativeAreaRegion: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Category to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->category($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->category: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Category to set root category.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->categoryTree($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->categoryTree: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of CivicStructure to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->civicStructure($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->civicStructure: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Condition to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->condition($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->condition: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of CreativeWork to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->creativeWork($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->creativeWork: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$term_code = "term_code_example"; // string | Use property code of a term to get the current term version.
$accept_language = "accept_language_example"; // string | Supply this header to select the term version in the correct language and deliver localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->currentTermVersion($term_code, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->currentTermVersion: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Event to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->event($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->event: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of FoodEstablishment to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->foodEstablishment($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->foodEstablishment: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
try {
$apiInstance->getStatus();
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getStatus: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of ImageObject to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->imageObject($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->imageObject: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$category = "category_example"; // string | Use property identifier of category to filter.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$admin_areas_only = "admin_areas_only_example"; // string | set to true all types of areas are included. This kind of destroys the tree structure and combined with high levels the performance is bad. default = false (works only in combination with rootObjectsOnly).
$root_objects_only = true; // bool | Pass 'true' if you want to get only root areas.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
$accept_language = "accept_language_example"; // string | Localized properties.
try {
$result = $apiInstance->listAdministrativeAreaRegion($category, $contained_in_place, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $admin_areas_only, $root_objects_only, $accept_timezone, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listAdministrativeAreaRegion: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$parent_category = "parent_category_example"; // string | Use property identifier of category to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$root_objects_only = true; // bool | Pass 'true' if you want to get only root categories.
$accept_language = "accept_language_example"; // string | Localized properties.
try {
$result = $apiInstance->listCategory($parent_category, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $root_objects_only, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listCategory: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$category = "category_example"; // string | Use property identifier of category to filter.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listCivicStructure($category, $contained_in_place, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listCivicStructure: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$category = "category_example"; // string | Use property identifier of category to filter.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
$accept_language = "accept_language_example"; // string | Localized properties.
try {
$result = $apiInstance->listCondition($category, $contained_in_place, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_timezone, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listCondition: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listCreativeWork($updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listCreativeWork: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$category = "category_example"; // string | Use property identifier of category to filter.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter by the region (administrative area).
$location = "location_example"; // string | Use property identifier of place to filter by the location (business).
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
$accept_language = "accept_language_example"; // string | Localized properties.
try {
$result = $apiInstance->listEvents($updated_since, $category, $datasource, $continuation_token, $top, $contained_in_place, $location, $project, $select, $include_count, $accept_timezone, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listEvents: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$category = "category_example"; // string | Use property identifier of category to filter.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listFoodEstablishment($category, $contained_in_place, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listFoodEstablishment: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listImageObject($updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listImageObject: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$category = "category_example"; // string | Use property identifier of category to filter.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listLocalBusiness($category, $contained_in_place, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listLocalBusiness: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$category = "category_example"; // string | Use property identifier of category to filter.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listLodgingBusiness($category, $contained_in_place, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listLodgingBusiness: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listMediaObject($updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listMediaObject: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$category = "category_example"; // string | Use property identifier of category to filter.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listPlace($category, $contained_in_place, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listPlace: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of Data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
try {
$result = $apiInstance->listProducts($datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listProducts: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
try {
$result = $apiInstance->listTimezones();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listTimezones: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$category = "category_example"; // string | Use property identifier of category to filter.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listTour($category, $contained_in_place, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listTour: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$category = "category_example"; // string | Use property identifier of category to filter.
$contained_in_place = "contained_in_place_example"; // string | Use property identifier of place to filter.
$updated_since = "updated_since_example"; // string | Format - date-time (as date-time in RFC3339). Return only changed data since specific date.
$datasource = "datasource_example"; // string | Use datasource to filter.
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$project = "project_example"; // string | Use this property to filter objects by project
$select = "select_example"; // string | Pass list of object properties to query
$include_count = true; // bool | Pass 'true' if you want to get total filtered items count in response
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->listWebcams($category, $contained_in_place, $updated_since, $datasource, $continuation_token, $top, $project, $select, $include_count, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listWebcams: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of LocalBusiness to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->localBusiness($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->localBusiness: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of LodgingBusiness to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->lodgingBusiness($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->lodgingBusiness: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of MediaObject to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->mediaObject($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->mediaObject: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Place to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->place($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->place: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Product to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->product($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->product: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$body = new \Infocenter\Client\Model\DsExtendedSearchRequest(); // \Infocenter\Client\Model\DsExtendedSearchRequest |
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->search($body, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->search: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$search_text = "search_text_example"; // string | Use property for search request text
$current_page = 56; // int | Format - int32. Use property to set number of page
$results_per_page = 56; // int | Format - int32. Use property to set count of results per page
$order_by = "order_by_example"; // string | Use property for ordering
$filters = "filters_example"; // string | Use property for odata filters
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->searchByGET($search_text, $current_page, $results_per_page, $order_by, $filters, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->searchByGET: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$code = "code_example"; // string | Use property code of TermVersion to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->termVersion($code, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->termVersion: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Tour to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->tour($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->tour: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Region to set root Region.
$levels = "levels_example"; // string | controls how deep the tree should go. default = 1
$admin_areas_only = "admin_areas_only_example"; // string | set to true all types of areas are included. This kind of destroys the tree structure and combined with high levels the performance is bad. default = false
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
$accept_language = "accept_language_example"; // string | Localized properties.
try {
$result = $apiInstance->treeAdministrativeAreaRegion($id, $levels, $admin_areas_only, $accept_timezone, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->treeAdministrativeAreaRegion: ', $e->getMessage(), PHP_EOL;
}
// Configure API key authorization: apiKeyHeader
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infocenter\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');
$apiInstance = new Infocenter\Client\Api\DefaultApi(
// 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
);
$id = "id_example"; // string | Use property identifier of Webcam to get single object.
$accept_language = "accept_language_example"; // string | Localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates and times
try {
$result = $apiInstance->webcam($id, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->webcam: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://api.discover.swiss/test/info
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | administrativeAreaRegion | GET /areas/{id} | AdministrativeArea (Region) |
DefaultApi | category | GET /categories/{id} | Category |
DefaultApi | categoryTree | GET /categories/{id}/tree | Category Tree |
DefaultApi | civicStructure | GET /civicStructures/{id} | CivicStructure |
DefaultApi | condition | GET /conditions/{id} | Condition |
DefaultApi | creativeWork | GET /creativeWorks/{id} | CreativeWork |
DefaultApi | currentTermVersion | GET /termversions/{termCode}/currentVersion | Current TermVersion |
DefaultApi | event | GET /events/{id} | Event |
DefaultApi | foodEstablishment | GET /foodEstablishments/{id} | FoodEstablishment |
DefaultApi | getStatus | GET /status | GetStatus |
DefaultApi | imageObject | GET /imageObjects/{id} | ImageObject |
DefaultApi | listAdministrativeAreaRegion | GET /areas | List AdministrativeArea (Region) |
DefaultApi | listCategory | GET /categories | List Category |
DefaultApi | listCivicStructure | GET /civicStructures | List CivicStructure |
DefaultApi | listCondition | GET /conditions | List Condition |
DefaultApi | listCreativeWork | GET /creativeWorks | List CreativeWork |
DefaultApi | listEvents | GET /events | List Events |
DefaultApi | listFoodEstablishment | GET /foodEstablishments | List FoodEstablishment |
DefaultApi | listImageObject | GET /imageObjects | List ImageObject |
DefaultApi | listLocalBusiness | GET /localbusinesses | List LocalBusiness |
DefaultApi | listLodgingBusiness | GET /lodgingbusinesses | List LodgingBusiness |
DefaultApi | listMediaObject | GET /mediaObjects | List MediaObject |
DefaultApi | listPlace | GET /places | List Place |
DefaultApi | listProducts | GET /products | List Products |
DefaultApi | listTimezones | GET /timezones | List Timezones |
DefaultApi | listTour | GET /tours | List Tour |
DefaultApi | listWebcams | GET /webcams | List Webcams |
DefaultApi | localBusiness | GET /localbusinesses/{id} | LocalBusiness |
DefaultApi | lodgingBusiness | GET /lodgingbusinesses/{id} | LodgingBusiness |
DefaultApi | mediaObject | GET /mediaObjects/{id} | MediaObject |
DefaultApi | place | GET /places/{id} | Place |
DefaultApi | product | GET /products/{id} | Product |
DefaultApi | search | POST /search | Search |
DefaultApi | searchByGET | GET /search | Search by GET |
DefaultApi | termVersion | GET /termversions/{code} | TermVersion |
DefaultApi | tour | GET /tours/{id} | Tour |
DefaultApi | treeAdministrativeAreaRegion | GET /areas/{id}/tree | Tree AdministrativeArea (Region) |
DefaultApi | webcam | GET /webcams/{id} | Webcam |
- DsAdministrativeArea
- DsAdministrativeAreaTreeItem
- DsAdministrativeAreasResponse
- DsAggregateRating
- DsCategoriesResponse
- DsCategory
- DsCategoryIcon
- DsCategoryTreeItem
- DsCivicStructure
- DsCivicStructuresResponse
- DsCondition
- DsConditionsResponse
- DsContactPoint
- DsCreativeWork
- DsCreativeWorksResponse
- DsDataGovernance
- DsEvent
- DsEventsResponse
- DsExpandoObject
- DsExtendedSearchRequest
- DsFacetRequest
- DsFoodEstablishment
- DsFoodEstablishmentsResponse
- DsGeoCoordinates
- DsGeoShape
- DsImageObject
- DsImageObjectsResponse
- DsLink
- DsLocalBusiness
- DsLocalBusinessesResponse
- DsLocationFeatureSpecification
- DsLodgingBusiness
- DsLodgingBusinessesResponse
- DsLogoImageObject
- DsMediaObject
- DsMediaObjectsResponse
- DsObject
- DsOpeningHoursSpecification
- DsOrganization
- DsPartner
- DsPlace
- DsPlacesResponse
- DsPostalAddress
- DsProduct
- DsProductPrice
- DsProductsResponse
- DsPropertyValue
- DsQuantitativeValue
- DsRating
- DsSchedule
- DsScheduleStartTime
- DsSearchResponse
- DsSource
- DsTag
- DsTerm
- DsTermVersion
- DsTimeZoneResponse
- DsTimeZoneResponseArray
- DsTour
- DsTourElevation
- DsTourRating
- DsToursResponse
- DsWebcam
- DsWebcamsResponse
- Type: API key
- API key parameter name: Ocp-Apim-Subscription-Key
- Location: HTTP header
- Type: API key
- API key parameter name: subscription-key
- Location: URL query string