Skip to content

Commit

Permalink
Fix Jumbo API #220
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceu committed Sep 12, 2023
1 parent 3fed0d1 commit 55bbc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incl/lookupProviders/ProviderJumbo.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function lookupBarcode(string $barcode): ?array {

$userAgent = "Mozilla/5.0 (Linux; Android 11; SM-N976N Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/80.0.3987.163 Whale/1.0.0.0 Crosswalk/25.80.14.24 Mobile Safari/537.36 NAVER(inapp; search; 598; 11.0.6)";

$url = "https://mobileapi.jumbo.com/v14/search?q=" . $barcode;
$url = "https://mobileapi.jumbo.com/v17/search?q=" . $barcode;
$result = $this->execute($url, "GET", null, $userAgent);
if (!isset($result["products"]) || !isset($result["products"]["data"]) || !isset($result["products"]["total"]) || $result["products"]["total"] == "O")
return null;
Expand Down

0 comments on commit 55bbc03

Please sign in to comment.