Skip to content

Commit

Permalink
Merge pull request #5 from progcode/develop
Browse files Browse the repository at this point in the history
v1.0.2
  • Loading branch information
progcode authored Apr 14, 2022
2 parents 52d0d4b + 9f98da8 commit 8e06701
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Icecat is a PHP library, that assists you in the following 2 procedures:
* Fetching data from the Icecat database using basic product information.
* Parsing this data from the Icecat response, and using them in real life applications.

>
> **v1.0.2:**
>
> - trim() vendor and sku/mpn values
### About Icecat
[Icecat](http://icecat.biz, "Icecat") is an open catalog, providing free access to thousands of product datasheets.
In extend, when taking a subscription, the amount of accessible datasheets are increased.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"email": "[email protected]"
}
],
"version": "1.0.0",
"version": "1.0.2",
"license": "MIT",
"minimum-stability": "dev",
"require": {
Expand Down
6 changes: 3 additions & 3 deletions src/Icecat/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ public function getArticleByEAN($ean, $lang='HU')
public function getArticleByMPN($vendor, $mpn, $lang='HU')
{
$params = array(
'prod_id' => $mpn,
'vendor' => $vendor,
'lang' => $lang,
'prod_id' => trim($mpn),
'vendor' => trim($vendor),
'lang' => trim($lang),
'output' => 'productxml'
);

Expand Down

0 comments on commit 8e06701

Please sign in to comment.