Skip to content

Latest commit

 

History

History
284 lines (191 loc) · 6.95 KB

LoungeApi.md

File metadata and controls

284 lines (191 loc) · 6.95 KB

OpenAPI\Client\LoungeApi

All URIs are relative to https://api.wall.et, except if the operation defines another base path.

Method HTTP request Description
archiveLounge() DELETE /v2/lounge/{id} Archive lounge
createLounge() POST /v2/lounge Create lounge
fetchAllLounge() GET /v2/lounge/all Fetch all lounge
restoreLounge() PATCH /v2/lounge/{id} Restore lounge
updateLounge() PUT /v2/lounge/{id} Update lounge

archiveLounge()

archiveLounge($id): \OpenAPI\Client\Model\Lounge

Archive lounge

Example

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



$apiInstance = new OpenAPI\Client\Api\LoungeApi(
    // 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()
);
$id = NULL; // mixed

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

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\Lounge

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]

createLounge()

createLounge($wt_lounge_create_params): \OpenAPI\Client\Model\Lounge

Create lounge

Example

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



$apiInstance = new OpenAPI\Client\Api\LoungeApi(
    // 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()
);
$wt_lounge_create_params = new \OpenAPI\Client\Model\WTLoungeCreateParams(); // \OpenAPI\Client\Model\WTLoungeCreateParams

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

Parameters

Name Type Description Notes
wt_lounge_create_params \OpenAPI\Client\Model\WTLoungeCreateParams

Return type

\OpenAPI\Client\Model\Lounge

Authorization

No authorization required

HTTP request headers

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

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

fetchAllLounge()

fetchAllLounge($is_archive_included): mixed

Fetch all lounge

Example

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



$apiInstance = new OpenAPI\Client\Api\LoungeApi(
    // 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()
);
$is_archive_included = True; // bool

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

Parameters

Name Type Description Notes
is_archive_included bool [optional]

Return type

mixed

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]

restoreLounge()

restoreLounge($id): \OpenAPI\Client\Model\Lounge

Restore lounge

Example

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



$apiInstance = new OpenAPI\Client\Api\LoungeApi(
    // 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()
);
$id = NULL; // mixed

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

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\Lounge

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]

updateLounge()

updateLounge($id, $wt_lounge_update_params): \OpenAPI\Client\Model\Lounge

Update lounge

Example

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



$apiInstance = new OpenAPI\Client\Api\LoungeApi(
    // 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()
);
$id = NULL; // mixed
$wt_lounge_update_params = new \OpenAPI\Client\Model\WTLoungeUpdateParams(); // \OpenAPI\Client\Model\WTLoungeUpdateParams

try {
    $result = $apiInstance->updateLounge($id, $wt_lounge_update_params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LoungeApi->updateLounge: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed
wt_lounge_update_params \OpenAPI\Client\Model\WTLoungeUpdateParams

Return type

\OpenAPI\Client\Model\Lounge

Authorization

No authorization required

HTTP request headers

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

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