From c35da36b71a6d305265072c827f7a1c98e94816a Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 11 Mar 2018 00:59:51 -0500 Subject: [PATCH 1/4] Added descriptions, links, and event reporting reference. --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 56b414b..9222154 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ echo 'Created event with key ' . $event->key; ### Booking objects +Changes the object status to ‘booked’. Booked seats are not selectable on a rendered chart. + +[https://www.seats.io/docs/api-v2#core-resources-objects-book-objects](https://www.seats.io/docs/api-v2#core-resources-objects-book-objects) + ```php $seatsio = new \Seatsio\SeatsioClient(); $seatsio->events()->book(, ["A-1", "A-2"]); @@ -41,6 +45,10 @@ $seatsio->events()->book(, ["A-1", "A-2"]); ### Releasing objects +Changes the object status to ‘free’. Free seats are selectable on a rendered chart. + +[https://www.seats.io/docs/api-v2#core-resources-objects-release-objects](https://www.seats.io/docs/api-v2#core-resources-objects-release-objects) + ```php $seatsio = new \Seatsio\SeatsioClient(); $seatsio->events()->release(, ["A-1", "A-2"]); @@ -48,6 +56,8 @@ $seatsio->events()->release(, ["A-1", "A-2"]); ### Booking objects that have been held + + ```php $seatsio = new \Seatsio\SeatsioClient(); $seatsio->events()->book(, ["A-1", "A-2"], ); @@ -55,11 +65,33 @@ $seatsio->events()->book(, ["A-1", "A-2"], ); ### Changing object status +Changes the object status to a custom status of your choice. + +[https://www.seats.io/docs/api-v2#core-resources-objects-change-object-status](https://www.seats.io/docs/api-v2#core-resources-objects-change-object-status) + ```php $seatsio = new \Seatsio\SeatsioClient(); $seatsio->events()->changeObjectStatus(, ["A-1", "A-2"], "unavailable"); ``` +### Event reports + +Want to know which seats of an event are booked, and which ones are free? That’s where reporting comes in handy. + +The report types you can choose from are: +- byStatus +- byCategoryLabel +- byCategoryKey +- byLabel +- byOrderId + +[https://www.seats.io/docs/api-v2#core-resources-event-reports](https://www.seats.io/docs/api-v2#core-resources-event-reports) + +```php +$seatsio = new \Seatsio\SeatsioClient(); +$report = $seatsio->events()->reports()->byStatus(); +``` + ### Listing charts ```php From 73e553a732daa31b73ec44ed1b1a8a25693ec371 Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 11 Mar 2018 01:10:56 -0500 Subject: [PATCH 2/4] Updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9222154..847dc9e 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ The report types you can choose from are: ```php $seatsio = new \Seatsio\SeatsioClient(); -$report = $seatsio->events()->reports()->byStatus(); +$seatsio->events()->reports()->byStatus(, ); ``` ### Listing charts From c4e6752ab53fc1643b8bbbbefd0ef31f4019bf91 Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 11 Mar 2018 01:25:37 -0500 Subject: [PATCH 3/4] Updated README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 847dc9e..47185a7 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,6 @@ $seatsio->events()->release(, ["A-1", "A-2"]); ### Booking objects that have been held - - ```php $seatsio = new \Seatsio\SeatsioClient(); $seatsio->events()->book(, ["A-1", "A-2"], ); @@ -65,7 +63,7 @@ $seatsio->events()->book(, ["A-1", "A-2"], ); ### Changing object status -Changes the object status to a custom status of your choice. +Changes the object status to a custom status of your choice. If you need more statuses than just booked and free, you can use this to change the status of a seat, table or booth to your own custom status. [https://www.seats.io/docs/api-v2#core-resources-objects-change-object-status](https://www.seats.io/docs/api-v2#core-resources-objects-change-object-status) From 6d1176ecce4fa258b571f9bc361d5eb0da31e61f Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 11 Mar 2018 01:30:35 -0500 Subject: [PATCH 4/4] Updated README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 47185a7..5887c08 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,13 @@ $seatsio = new \Seatsio\SeatsioClient(); $seatsio->events()->book(, ["A-1", "A-2"]); ``` +### Booking objects that have been held + +```php +$seatsio = new \Seatsio\SeatsioClient(); +$seatsio->events()->book(, ["A-1", "A-2"], ); +``` + ### Releasing objects Changes the object status to ‘free’. Free seats are selectable on a rendered chart. @@ -54,13 +61,6 @@ $seatsio = new \Seatsio\SeatsioClient(); $seatsio->events()->release(, ["A-1", "A-2"]); ``` -### Booking objects that have been held - -```php -$seatsio = new \Seatsio\SeatsioClient(); -$seatsio->events()->book(, ["A-1", "A-2"], ); -``` - ### Changing object status Changes the object status to a custom status of your choice. If you need more statuses than just booked and free, you can use this to change the status of a seat, table or booth to your own custom status.