From 1cca711daa22fd22096e28923a22d74368e89fa4 Mon Sep 17 00:00:00 2001 From: kev-le Date: Tue, 30 Jan 2024 11:44:18 -0800 Subject: [PATCH] Update readme --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index ff27102..c6f6973 100644 --- a/README.md +++ b/README.md @@ -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.