Skip to content

Commit ae673af

Browse files
fix API path
1 parent e13ee0a commit ae673af

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/ClientV2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function enqueueAndGetResult(
157157
break;
158158
}
159159
if ($pollResults->job->status === "Processed") {
160-
return $this->getResultFromUrl($responseClass, $pollResults->job->pollingUrl);
160+
return $this->getResultFromUrl($responseClass, $pollResults->job->resultUrl);
161161
}
162162

163163
error_log(

src/Http/MindeeApiV2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ private function documentEnqueuePost(
412412
if (isset($params->alias)) {
413413
$postFields['alias'] = $params->alias;
414414
}
415-
$url = $this->baseUrl . "products/{$params::$slug}/enqueue";
415+
$url = $this->baseUrl . "/products/{$params::$slug}/enqueue";
416416
curl_setopt($ch, CURLOPT_URL, $url);
417417
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
418418
$resp = [

src/V2/ClientOptions/BaseParameters.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ abstract class BaseParameters
2929
*/
3030
public PollingOptions $pollingOptions;
3131

32-
/**
33-
* @var string Slug of the product.
34-
*/
35-
public static string $slug;
36-
3732
/**
3833
* @param string $modelId ID of the model.
3934
* @param string|null $alias Optional file alias.

0 commit comments

Comments
 (0)