| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="chromewebstore_v2.html">Chrome Web Store API</a> . <a href="chromewebstore_v2.publishers.html">publishers</a> . <a href="chromewebstore_v2.publishers.items.html">items</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#cancelSubmission">cancelSubmission(name, body=None, x__xgafv=None)</a></code></p> |
| 79 |
<p class="firstline">Cancel the current active submission of an item if present. This can be used to cancel the review of a pending submission.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#close">close()</a></code></p> |
| 82 |
<p class="firstline">Close httplib2 connections.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#fetchStatus">fetchStatus(name, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Fetch the status of an item.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#publish">publish(name, body=None, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Submit the item to be published in the store. The item will be submitted for review unless `skip_review` is set to true, or the item is staged from a previous submission with `publish_type` set to `STAGED_PUBLISH`.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#setPublishedDeployPercentage">setPublishedDeployPercentage(name, body=None, x__xgafv=None)</a></code></p> |
| 91 |
<p class="firstline">Set a higher target deploy percentage for the item's published revision. This will be updated without the item being submitted for review. This is only available to items with over 10,000 seven-day active users.</p> |
| 92 |
<h3>Method Details</h3> |
| 93 |
<div class="method"> |
| 94 |
<code class="details" id="cancelSubmission">cancelSubmission(name, body=None, x__xgafv=None)</code> |
| 95 |
<pre>Cancel the current active submission of an item if present. This can be used to cancel the review of a pending submission. |
| 96 |
|
| 97 |
Args: |
| 98 |
name: string, Required. Name of the item to cancel the submission of in the form `publishers/{publisherId}/items/{itemId}` (required) |
| 99 |
body: object, The request body. |
| 100 |
The object takes the form of: |
| 101 |
|
| 102 |
{ # Request message for CancelSubmission. |
| 103 |
} |
| 104 |
|
| 105 |
x__xgafv: string, V1 error format. |
| 106 |
Allowed values |
| 107 |
1 - v1 error format |
| 108 |
2 - v2 error format |
| 109 |
|
| 110 |
Returns: |
| 111 |
An object of the form: |
| 112 |
|
| 113 |
{ # Response message for `CancelSubmission`. |
| 114 |
}</pre> |
| 115 |
</div> |
| 116 |
|
| 117 |
<div class="method"> |
| 118 |
<code class="details" id="close">close()</code> |
| 119 |
<pre>Close httplib2 connections.</pre> |
| 120 |
</div> |
| 121 |
|
| 122 |
<div class="method"> |
| 123 |
<code class="details" id="fetchStatus">fetchStatus(name, x__xgafv=None)</code> |
| 124 |
<pre>Fetch the status of an item. |
| 125 |
|
| 126 |
Args: |
| 127 |
name: string, Required. Name of the item to retrieve the status of in the form `publishers/{publisherId}/items/{itemId}` (required) |
| 128 |
x__xgafv: string, V1 error format. |
| 129 |
Allowed values |
| 130 |
1 - v1 error format |
| 131 |
2 - v2 error format |
| 132 |
|
| 133 |
Returns: |
| 134 |
An object of the form: |
| 135 |
|
| 136 |
{ # Response message for `FetchItemStatus`. |
| 137 |
"itemId": "A String", # Output only. The ID of the item. |
| 138 |
"lastAsyncUploadState": "A String", # Output only. The state of the last async upload for an item. Only set when there has been an async upload for the item in the past 24 hours. |
| 139 |
"name": "A String", # The name of the requested item. |
| 140 |
"publicKey": "A String", # The public key of the item, which may be generated by the store. |
| 141 |
"publishedItemRevisionStatus": { # Details on the status of an item revision. # Output only. Status of the current published revision of the item. Will be unset if the item is not published. |
| 142 |
"distributionChannels": [ # Details on the package of the item |
| 143 |
{ # Deployment information for a specific release channel |
| 144 |
"crxVersion": "A String", # The extension version provided in the manifest of the uploaded package. |
| 145 |
"deployPercentage": 42, # The current deploy percentage for the release channel (nonnegative number between 0 and 100). |
| 146 |
}, |
| 147 |
], |
| 148 |
"state": "A String", # Output only. Current state of the item |
| 149 |
}, |
| 150 |
"submittedItemRevisionStatus": { # Details on the status of an item revision. # Status of the item revision submitted to be published. Will be unset if the item has not been submitted for publishing since the last successful publish. |
| 151 |
"distributionChannels": [ # Details on the package of the item |
| 152 |
{ # Deployment information for a specific release channel |
| 153 |
"crxVersion": "A String", # The extension version provided in the manifest of the uploaded package. |
| 154 |
"deployPercentage": 42, # The current deploy percentage for the release channel (nonnegative number between 0 and 100). |
| 155 |
}, |
| 156 |
], |
| 157 |
"state": "A String", # Output only. Current state of the item |
| 158 |
}, |
| 159 |
"takenDown": True or False, # If true, the item has been taken down for a policy violation. Check the developer dashboard for details. |
| 160 |
"warned": True or False, # If true, the item has been warned for a policy violation and will be taken down if not resolved. Check the developer dashboard for details. |
| 161 |
}</pre> |
| 162 |
</div> |
| 163 |
|
| 164 |
<div class="method"> |
| 165 |
<code class="details" id="publish">publish(name, body=None, x__xgafv=None)</code> |
| 166 |
<pre>Submit the item to be published in the store. The item will be submitted for review unless `skip_review` is set to true, or the item is staged from a previous submission with `publish_type` set to `STAGED_PUBLISH`. |
| 167 |
|
| 168 |
Args: |
| 169 |
name: string, Required. Name of the item in the form `publishers/{publisherId}/items/{itemId}` (required) |
| 170 |
body: object, The request body. |
| 171 |
The object takes the form of: |
| 172 |
|
| 173 |
{ # Request message for PublishItem. |
| 174 |
"blockOnWarnings": True or False, # Optional. When set to true the request will fail if there are any warnings during validation and the details will be included in the `error.details`. Otherwise warnings are treated as non-blocking and will be ignored for validation but will be included in the response for inspection. Defaults to `false` if unset. |
| 175 |
"deployInfos": [ # Optional. Additional deploy information including the desired initial percentage rollout. Defaults to the current value saved in the developer dashboard if unset. |
| 176 |
{ # Deployment information for a specific release channel. Used in requests to update deployment parameters. |
| 177 |
"deployPercentage": 42, # Required. The current deploy percentage for the release channel (nonnegative number between 0 and 100). |
| 178 |
}, |
| 179 |
], |
| 180 |
"publishType": "A String", # Optional. Use this to control if the item is published immediately on approval or staged for publishing in the future. Defaults to `DEFAULT_PUBLISH` if unset. |
| 181 |
"skipReview": True or False, # Optional. Whether to attempt to skip item review. The API will validate if the item qualifies and return a validation error if the item requires review. Defaults to `false` if unset. |
| 182 |
} |
| 183 |
|
| 184 |
x__xgafv: string, V1 error format. |
| 185 |
Allowed values |
| 186 |
1 - v1 error format |
| 187 |
2 - v2 error format |
| 188 |
|
| 189 |
Returns: |
| 190 |
An object of the form: |
| 191 |
|
| 192 |
{ # Response message for `PublishItem`. |
| 193 |
"itemId": "A String", # Output only. The ID of the item. |
| 194 |
"name": "A String", # The name of the item that was submitted |
| 195 |
"state": "A String", # Output only. The current state of the submission. |
| 196 |
"warningInfo": { # Message containing details on warnings encountered during PublishItem. # Output only. Non-blocking warnings encountered during the request. |
| 197 |
"warnings": [ # All warnings encountered during the request. |
| 198 |
{ # Represents a single warning encountered during the request. |
| 199 |
"description": "A String", # A description of the warning. Developers should use this message to understand the warning and take appropriate action to resolve the issue. |
| 200 |
"reason": "A String", # The reason for the warning. This is a constant value that identifies the proximate cause of the warning. |
| 201 |
}, |
| 202 |
], |
| 203 |
}, |
| 204 |
}</pre> |
| 205 |
</div> |
| 206 |
|
| 207 |
<div class="method"> |
| 208 |
<code class="details" id="setPublishedDeployPercentage">setPublishedDeployPercentage(name, body=None, x__xgafv=None)</code> |
| 209 |
<pre>Set a higher target deploy percentage for the item's published revision. This will be updated without the item being submitted for review. This is only available to items with over 10,000 seven-day active users. |
| 210 |
|
| 211 |
Args: |
| 212 |
name: string, Required. Name of the item to update the published revision of in the form `publishers/{publisherId}/items/{itemId}` (required) |
| 213 |
body: object, The request body. |
| 214 |
The object takes the form of: |
| 215 |
|
| 216 |
{ # Request message for SetPublishedDeployPercentage. |
| 217 |
"deployPercentage": 42, # Required. Unscaled percentage value for the publised revision (nonnegative number between 0 and 100). It must be larger than the existing target percentage. |
| 218 |
} |
| 219 |
|
| 220 |
x__xgafv: string, V1 error format. |
| 221 |
Allowed values |
| 222 |
1 - v1 error format |
| 223 |
2 - v2 error format |
| 224 |
|
| 225 |
Returns: |
| 226 |
An object of the form: |
| 227 |
|
| 228 |
{ # Response message for `SetPublishedDeployPercentage`. |
| 229 |
}</pre> |
| 230 |
</div> |
| 231 |
|
| 232 |
</body></html> |