Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kev-le committed Jan 30, 2024
1 parent 7bc8146 commit 1cca711
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ 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
```

```dotnet
// OPTIONAL: If you want this SDK to handle photo downloads to a specified output folder
// FETCH COMPLETED JOB (wait until job status is completed)
dynamic completedJob = await apiClient.GetJob(queuedJob.id.Value);
// DOWNLOAD COMPLETED JOB PHOTOS
JArray photosList = job.photos;
await apiClient.DownloadAllPhotos(photosList, job.profile, "photos/output/");
```

### 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 1cca711

Please sign in to comment.