Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kev-le committed Oct 27, 2023
1 parent 180352f commit 82d95df
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ $ nuget install SkylabStudio

## Example Usage

For all examples, assume:

```dotnet
using SkylabStudio;
var apiClient = new StudioClient("YOUR_SKYLAB_API_TOKEN");
```

```dotnet
// Example Job Processing Flow with Callback
// CREATE PROFILE
dynamic profile = await apiClient.CreateProfile(new { name = $"Test Profile", enable_crop = false, enable_color = true });
Expand All @@ -29,14 +39,6 @@ dynamic queuedJob = await apiClient.QueueJob(job.id.Value, new { callback_url =
// We will send a response to the specified callback_url with the output photo download urls
```

For all examples, assume:

```dotnet
using SkylabTech.SkylabStudio;
var api = new StudioClient("YOUR_SKYLAB_API_TOKEN");
```

### Error Handling

By default, the API calls return a JSON (JObject) response object no matter the type of response.
Expand Down

0 comments on commit 82d95df

Please sign in to comment.