Skip to content

Commit

Permalink
fix: custom query params for get category rules api
Browse files Browse the repository at this point in the history
  • Loading branch information
nVuln committed Dec 10, 2024
1 parent e3fbaa2 commit b9eddb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Resources/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ public function getAttributes($category_id, $params = [])
]);
}

public function getCategoryRules($category_id)
public function getCategoryRules($category_id, $params = [])
{
return $this->call('GET', 'categories/'.$category_id.'/rules');
return $this->call('GET', 'categories/'.$category_id.'/rules', [
RequestOptions::QUERY => $params
]);
}

public function recommendCategory($product_title, $description = '', $images = [], $category_version = 'v1')
Expand Down

0 comments on commit b9eddb2

Please sign in to comment.