From 551de8d3eec1d455f4fa8f46210ebfa7699d41c9 Mon Sep 17 00:00:00 2001 From: 2lives Date: Mon, 22 Apr 2024 11:41:47 -0700 Subject: [PATCH] STD-1 added much needed semicolons to example usage in readme. --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ad105fb..21ca00b 100644 --- a/README.md +++ b/README.md @@ -20,25 +20,25 @@ $profilePayload = [ 'name' => 'profile name', 'enable_crop' => false, 'enable_retouch' => true -] +]; -$profile = $api->createProfile($profilePayload) +$profile = $api->createProfile($profilePayload); // CREATE JOB $jobPayload = [ 'name' => 'job name', 'profile_id' => $profile['id'] -] +]; -$job = $api->createJob($jobPayload) +$job = $api->createJob($jobPayload); // UPLOAD JOB PHOTO(S) -$filePath = '/path/to/photo' -$api->uploadJobPhoto($filePath, $job->id) +$filePath = '/path/to/photo'; +$api->uploadJobPhoto($filePath, $job->id); // QUEUE JOB -$payload = [ 'callback_url' => 'YOUR_CALLBACK_ENDPOINT' ] -$api->queueJob(job.id, $payload) +$payload = [ 'callback_url' => 'YOUR_CALLBACK_ENDPOINT' ]; +$api->queueJob(job.id, $payload); // NOTE: Once the job is queued, it will transition to processed and then completed // We will send a response to the specified callback_url with the output photo download urls