Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed Mar 19, 2018
2 parents 9cd0e02 + 9c064d0 commit 80f2943
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,62 @@ 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(<SECRET KEY>);
$seatsio->events()->book(<AN EVENT KEY>, ["A-1", "A-2"]);
```

### Releasing objects
### Booking objects that have been held

```php
$seatsio = new \Seatsio\SeatsioClient(<SECRET KEY>);
$seatsio->events()->release(<AN EVENT KEY>, ["A-1", "A-2"]);
$seatsio->events()->book(<AN EVENT KEY>, ["A-1", "A-2"], <A HOLD TOKEN>);
```

### Booking objects that have been held
### 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(<SECRET KEY>);
$seatsio->events()->book(<AN EVENT KEY>, ["A-1", "A-2"], <A HOLD TOKEN>);
$seatsio->events()->release(<AN EVENT KEY>, ["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.

[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(<SECRET KEY>);
$seatsio->events()->changeObjectStatus(<AN EVENT KEY>, ["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(<SECRET KEY>);
$seatsio->events()->reports()->byStatus(<AN EVENT KEY>, <OPTIONAL FILTER>);
```

### Listing charts

```php
Expand Down

0 comments on commit 80f2943

Please sign in to comment.