Skip to content

Latest commit

 

History

History
74 lines (54 loc) · 2.71 KB

LanguagesApi.md

File metadata and controls

74 lines (54 loc) · 2.71 KB

Ageras\Api\LanguagesApi

All URIs are relative to https://api.ageras.com/v2

Method HTTP request Description
languagesIndex GET /languages

languagesIndex

\Ageras\Api\LanguageResult languagesIndex($criteria)

Example

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

// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Ageras\Api\Api\LanguagesApi();
$criteria = [
        'geo_code' => "geo_code_example"; // string | Geo code to display language - default en.
        'iso_code' => "iso_code_example"; // string | Language iso code.
        'language' => "language_example"; // string | Language translation in geo code.
        'native' => "native_example"; // string | Language in native language.
        'limit' => 56; // int | The number of resources to be returned.
        'page' => 56; // int | The page position in the result.
        'query' => "query_example"; // string | The search wildcard.
    ];

try {
    $result = $api_instance->languagesIndex($criteria);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LanguagesApi->languagesIndex: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
geo_code string Geo code to display language - default en. [optional]
iso_code string Language iso code. [optional]
language string Language translation in geo code. [optional]
native string Language in native language. [optional]
limit int The number of resources to be returned. [optional]
page int The page position in the result. [optional]
query string The search wildcard. [optional]

Return type

\Ageras\Api\LanguageResult

Authorization

jwt, login

HTTP request headers

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

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