Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinxh authored Oct 9, 2024
1 parent ce1619a commit 037a9da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ const shopperSearch = new ShopperSearch({

// in an async function
try {
const searchResult = await shopperSearch.productSearch({
parameters: { q: "shirt" },
});
} catch (e) {
const error = await e.response.json();
console.log(error);
// error is the JSON object - {error: ",,,"}
}
const searchResult = await shopperSearch.productSearch({
parameters: { q: "shirt" },
});
} catch (e) {
const error = await e.response.json();
console.log(error);
// error is the JSON object - {error: ",,,"}
}
```

#### Additional Config Settings
Expand Down

0 comments on commit 037a9da

Please sign in to comment.