chrome-webstore
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -11,3 +11,3 @@ | ||
var VERSION = '20180301' | ||
var VERSION = '20181009' | ||
@@ -14,0 +14,0 @@ |
{ | ||
"name": "chrome-webstore", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Google Chrome Web Store HTTP Client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -13,2 +13,3 @@ | ||
- [detail](#detail) / [items](#items) / [reviews](#reviews) / [issues](#issues) | ||
- **[Chrome Web Store API Version](#chrome-web-store-api-version)** | ||
- **[Examples](#examples)** | ||
@@ -20,6 +21,6 @@ | ||
--- | --- | --- | --- | ||
detail | `{id, related, more, ...options}` | `{Object}` | Full details about a Web Store item | ||
items | `{search, category, rating, features, count, offset, ...options}` | `[Array]` | List Web Store items (subset of the detail data) | ||
reviews | `{id, count, offset, locale, sort, ...options}` | `[Array]` | List reviews for an item | ||
issues | `{id, type, count, page, ...options}` | `[Array]` | List issues for an item | ||
detail | `{id, related, more, version, ...options}` | `{Object}` | Full details about a Web Store item | ||
items | `{search, category, rating, features, count, offset, version, ...options}` | `[Array]` | List Web Store items (subset of the detail data) | ||
reviews | `{id, count, offset, locale, sort, version, ...options}` | `[Array]` | List reviews for an item | ||
issues | `{id, type, count, page, version, ...options}` | `[Array]` | List issues for an item | ||
@@ -184,2 +185,3 @@ ```js | ||
more | `true` | Additionally return more items from the same developer | ||
version | `20181009`| [API version](#chrome-web-store-api-version) | ||
...options | `agent, timeout` | any [request-compose][compose-client-options] option | ||
@@ -199,2 +201,3 @@ | ||
offset | `15` | Start returning items from `offset` (**requires** `category`) | ||
version | `20181009` | [API version](#chrome-web-store-api-version) | ||
...options | `agent, timeout` | any [request-compose][compose-client-options] option | ||
@@ -237,2 +240,3 @@ | ||
sort | `'helpful'` / `'recent'` | Sort order (defaults to helpful) | ||
version | `20181009`| [API version](#chrome-web-store-api-version) | ||
...options | `agent, timeout` | any [request-compose][compose-client-options] option | ||
@@ -250,4 +254,17 @@ | ||
page | `2` | Start returning issues from page (page * count) | ||
version | `20181009`| [API version](#chrome-web-store-api-version) | ||
...options | `agent, timeout` | any [request-compose][compose-client-options] option | ||
# Chrome Web Store API Version | ||
The Chrome Web Store REST API have a version string that needs to be passed with each request. For convenience the last known version of the REST API is hardcoded inside the module and used by default. | ||
In case you are getting `400 Bad Request` errors you might need to pass the correct REST API version explicitly, using the optional `version` argument. | ||
The correct REST API `version` can be obtained as follows: | ||
- Open `DevTools`, click on the `Network` tab and filter by `XHR` requests only | ||
- Click on one of the requests and take a look at the `Request URL` | ||
- Find the `pv` parameter in the `Request URL`, its value is the `version` that you need to pass | ||
# Examples | ||
@@ -254,0 +271,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22729
293