Skip to content

Commit

Permalink
fix: add category_version to recommendCategory #50
Browse files Browse the repository at this point in the history
  • Loading branch information
nVuln committed Nov 5, 2024
1 parent 4490d41 commit f9360dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Resources/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,14 @@ public function getCategoryRules($category_id)
return $this->call('GET', 'categories/'.$category_id.'/rules');
}

public function recommendCategory($product_title, $description = '', $images = [])
public function recommendCategory($product_title, $description = '', $images = [], $category_version = 'v1')
{
return $this->call('POST', 'categories/recommend', [
RequestOptions::JSON => [
'product_title' => $product_title,
'description' => $description,
'images' => $images,
'category_version' => $category_version,
]
]);
}
Expand Down

0 comments on commit f9360dd

Please sign in to comment.