Skip to content

Commit

Permalink
Add new showEventStats() method to return statistics regarding the …
Browse files Browse the repository at this point in the history
…tickets available for an event. (#170)
  • Loading branch information
jwcobb authored Jul 18, 2022
1 parent c88f6bb commit b89b7b5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 4.4.2 (July 18, 2022)
- Add new `showEventStats()` method to return statistics regarding the tickets available for an event.

## 4.4.1 (June 4, 2022)
- Do not require `price` when using `createTaxQuote()`.

Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Client
*
* @const string
*/
const VERSION = '4.4.1';
const VERSION = '4.4.2';

/**
* Guzzle service description
Expand Down
24 changes: 24 additions & 0 deletions src/Resources/v9/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,30 @@
],


/**
* Events / Stats
*/
'showEventStats' => [
'extends' => null,
'httpMethod' => 'GET',
'uri' => '/v9/events/{event_id}/stats',
'summary' => 'Get statistics for a single event.',
'notes' => '',
'documentationUrl' => 'https://ticketevolution.atlassian.net/wiki/spaces/API/pages/3057319937/Events+Stats',
'deprecated' => false,
'responseModel' => 'defaultJsonResponse',
'parameters' => [
'event_id' => [
'location' => 'uri',
'type' => 'integer',
'description' => 'ID of the Event for which to return statistics.',
'required' => true,
],
],
'additionalParameters' => null,
],


],

/*
Expand Down

0 comments on commit b89b7b5

Please sign in to comment.