Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 2.52 KB

InsuranceApi.md

File metadata and controls

64 lines (45 loc) · 2.52 KB

nullx27\ESI\InsuranceApi

All URIs are relative to https://esi.tech.ccp.is/latest

Method HTTP request Description
getInsurancePrices GET /insurance/prices/ List insurance levels

getInsurancePrices

\nullx27\ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[] getInsurancePrices($datasource, $language, $userAgent, $xUserAgent)

List insurance levels

Return available insurance levels for all ship types --- Alternate route: /dev/insurance/prices/ Alternate route: /legacy/insurance/prices/ Alternate route: /v1/insurance/prices/ --- This route is cached for up to 3600 seconds

Example

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

$apiInstance = new nullx27\ESI\Api\InsuranceApi(
    // 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()
);
$datasource = "tranquility"; // string | The server name you would like data from
$language = "en-us"; // string | Language to use in the response
$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers
$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent

try {
    $result = $apiInstance->getInsurancePrices($datasource, $language, $userAgent, $xUserAgent);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InsuranceApi->getInsurancePrices: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
datasource string The server name you would like data from [optional] [default to tranquility]
language string Language to use in the response [optional] [default to en-us]
userAgent string Client identifier, takes precedence over headers [optional]
xUserAgent string Client identifier, takes precedence over User-Agent [optional]

Return type

\nullx27\ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[]

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]