Class ItemsResource
The "items" collection of methods.
Inherited Members
Namespace: Google.Apis.Chromewebstore.v1_1
Assembly: Google.Apis.Chromewebstore.v1_1.dll
Syntax
public class ItemsResource
Constructors
ItemsResource(IClientService)
Constructs a new resource.
Declaration
public ItemsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Get(string)
Gets your own Chrome Web Store item.
Declaration
public virtual ItemsResource.GetRequest Get(string itemId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemId | Unique identifier representing the Chrome App, Chrome Extension, or the Chrome Theme. |
Returns
| Type | Description |
|---|---|
| ItemsResource.GetRequest |
Insert()
Inserts a new item.
Declaration
public virtual ItemsResource.InsertRequest Insert()
Returns
| Type | Description |
|---|---|
| ItemsResource.InsertRequest |
Insert(Stream, string)
Inserts a new item.
Declaration
public virtual ItemsResource.InsertMediaUpload Insert(Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream to upload. See remarks for further information. |
| string | contentType | The content type of the stream to upload. |
Returns
| Type | Description |
|---|---|
| ItemsResource.InsertMediaUpload |
Remarks
Considerations regarding stream:
-
If
streamis seekable, then the stream position will be reset to0before reading commences. Ifstreamis not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
streamopen until the upload is completed - Caller is responsible for closing the
stream
Publish(PublishRequest, string)
Publishes an item.
Declaration
public virtual ItemsResource.PublishRequest Publish(PublishRequest body, string itemId)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishRequest | body | The body of the request. |
| string | itemId | The ID of the item to publish. |
Returns
| Type | Description |
|---|---|
| ItemsResource.PublishRequest |
Update(Item, string)
Updates an existing item.
Declaration
public virtual ItemsResource.UpdateRequest Update(Item body, string itemId)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | body | The body of the request. |
| string | itemId | The ID of the item to upload. |
Returns
| Type | Description |
|---|---|
| ItemsResource.UpdateRequest |
Update(Item, string, Stream, string)
Updates an existing item.
Declaration
public virtual ItemsResource.UpdateMediaUpload Update(Item body, string itemId, Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | body | The body of the request. |
| string | itemId | The ID of the item to upload. |
| Stream | stream | The stream to upload. See remarks for further information. |
| string | contentType | The content type of the stream to upload. |
Returns
| Type | Description |
|---|---|
| ItemsResource.UpdateMediaUpload |
Remarks
Considerations regarding stream:
-
If
streamis seekable, then the stream position will be reset to0before reading commences. Ifstreamis not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
streamopen until the upload is completed - Caller is responsible for closing the
stream