Skip to content

Commit

Permalink
STD-1 added much needed semicolons to example usage in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
2lives committed Apr 22, 2024
1 parent da5f746 commit 551de8d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 551de8d

Please sign in to comment.