Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux authored May 12, 2020
1 parent 27dac42 commit d710ad0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,51 +28,51 @@ seatsio-dotnet follows semver since v70.2.0.
### Creating a chart and an event

```csharp
var client = new SeatsioClient("<SECRET KEY>"); // can be found on https://app.seats.io/settings
var client = new SeatsioClient("<WORKSPACE SECRET KEY>"); // can be found on https://app.seats.io/workspace-settings
var chart = client.Charts.Create();
var evnt = client.Events.Create(chart.Key);
```

### Booking objects

```csharp
var client = new SeatsioClient("<SECRET KEY>");
var client = new SeatsioClient("<WORKSPACE SECRET KEY>");
client.Events.Book(<EVENT KEY>, new [] { "A-1", "A-2"});
```

### Releasing objects

```csharp
var client = new SeatsioClient("<SECRET KEY>");
var client = new SeatsioClient("<WORKSPACE SECRET KEY>");
client.Events.Release(<EVENT KEY>, new [] { "A-1", "A-2"});
```

### Booking objects that have been held

```csharp
var client = new SeatsioClient("<SECRET KEY>");
var client = new SeatsioClient("<WORKSPACE SECRET KEY>");
client.Events.Book(<EVENT KEY>, new [] { "A-1", "A-2"}, <A HOLD TOKEN>);
```

### Changing object status

```csharp
var client = new SeatsioClient("<SECRET KEY>");
var client = new SeatsioClient("<WORKSPACE SECRET KEY>");
client.Events.ChangeObjectStatus(""<EVENT KEY>"", new [] { "A-1", "A-2"}, "unavailable");
```

### Retrieving the published version of a chart (i.e. the actual drawing, containing the venue type, categories etc.)

```csharp
var client = new SeatsioClient("<SECRET KEY>");
var client = new SeatsioClient("<WORKSPACE SECRET KEY>");
var drawing = client.Charts.RetrievePublishedVersion(<CHART KEY>);
Console.WriteLine(drawing.VenueType);
```

### Listing all charts

```csharp
var client = new SeatsioClient("<SECRET KEY>");
var client = new SeatsioClient("<WORKSPACE SECRET KEY>");

var charts = client.Charts.ListAll();
foreach (var chart in charts)
Expand Down

0 comments on commit d710ad0

Please sign in to comment.