Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.27 KB

EchoApi.md

File metadata and controls

68 lines (45 loc) · 2.27 KB

OpenAPI\Client\EchoApi

All URIs are relative to http://localhost, except if the operation defines another base path.

Method HTTP request Description
echoGet() GET /echo Test Echo API request

echoGet()

echoGet($api_platform): \OpenAPI\Client\Model\ApiResponse

Test Echo API request

You can use this API request to test your API client and make sure everything works fine (i.e. authorization or ApiPlatform headers or check if the API is up).

Example

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


// Configure OAuth2 access token for authorization: oauth2
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\EchoApi(
    // 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
);
$api_platform = 'api_platform_example'; // string | The API provides access to two separate platforms: test and live. The test platform allows you to experiment with the API without incurring charges or affecting customer orders. The live platform allows you to make real world changes.

try {
    $result = $apiInstance->echoGet($api_platform);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EchoApi->echoGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
api_platform string The API provides access to two separate platforms: test and live. The test platform allows you to experiment with the API without incurring charges or affecting customer orders. The live platform allows you to make real world changes.

Return type

\OpenAPI\Client\Model\ApiResponse

Authorization

oauth2

HTTP request headers

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

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