Show / Hide Table of Contents

Class ItemsResource

The "items" collection of methods.

Inheritance
object
ItemsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 stream is seekable, then the stream position will be reset to 0 before reading commences. If stream is not seekable, then it will be read from its current position
  • Caller is responsible for maintaining the stream open 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 stream is seekable, then the stream position will be reset to 0 before reading commences. If stream is not seekable, then it will be read from its current position
  • Caller is responsible for maintaining the stream open until the upload is completed
  • Caller is responsible for closing the stream
In this article
Back to top Generated by DocFX