Skip to content

Latest commit

 

History

History
284 lines (191 loc) · 6.94 KB

TicketApi.md

File metadata and controls

284 lines (191 loc) · 6.94 KB

OpenAPI\Client\TicketApi

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

Method HTTP request Description
archiveTicket() DELETE /v2/ticket/{id} Archive ticket
createTicket() POST /v2/ticket Create ticket
fetchTicket() GET /v2/ticket/{id} Fetch ticket
restoreTicket() PATCH /v2/ticket/{id} Restore ticket
updateTicket() PUT /v2/ticket/{id} Update ticket

archiveTicket()

archiveTicket($id): \OpenAPI\Client\Model\Ticket

Archive ticket

Example

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



$apiInstance = new OpenAPI\Client\Api\TicketApi(
    // 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->archiveTicket($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketApi->archiveTicket: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\Ticket

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]

createTicket()

createTicket($wt_ticket_create_params): \OpenAPI\Client\Model\Ticket

Create ticket

Example

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



$apiInstance = new OpenAPI\Client\Api\TicketApi(
    // 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_ticket_create_params = new \OpenAPI\Client\Model\WTTicketCreateParams(); // \OpenAPI\Client\Model\WTTicketCreateParams

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

Parameters

Name Type Description Notes
wt_ticket_create_params \OpenAPI\Client\Model\WTTicketCreateParams

Return type

\OpenAPI\Client\Model\Ticket

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]

fetchTicket()

fetchTicket($id): \OpenAPI\Client\Model\WTTicket

Fetch ticket

Example

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



$apiInstance = new OpenAPI\Client\Api\TicketApi(
    // 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->fetchTicket($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketApi->fetchTicket: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\WTTicket

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]

restoreTicket()

restoreTicket($id): \OpenAPI\Client\Model\Ticket

Restore ticket

Example

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



$apiInstance = new OpenAPI\Client\Api\TicketApi(
    // 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->restoreTicket($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketApi->restoreTicket: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\Ticket

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]

updateTicket()

updateTicket($id, $wt_ticket_update_params): \OpenAPI\Client\Model\Ticket

Update ticket

Example

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



$apiInstance = new OpenAPI\Client\Api\TicketApi(
    // 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_ticket_update_params = new \OpenAPI\Client\Model\WTTicketUpdateParams(); // \OpenAPI\Client\Model\WTTicketUpdateParams

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

Parameters

Name Type Description Notes
id mixed
wt_ticket_update_params \OpenAPI\Client\Model\WTTicketUpdateParams

Return type

\OpenAPI\Client\Model\Ticket

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]