Chrome Web Store API . items

Instance Methods

close()

Close httplib2 connections.

get(itemId, projection=None, x__xgafv=None)

Gets your own Chrome Web Store item.

insert(media_body=None, media_mime_type=None, publisherEmail=None, x__xgafv=None)

Inserts a new item.

publish(itemId, body=None, deployPercentage=None, publishTarget=None, reviewExemption=None, x__xgafv=None)

Publishes an item.

update(itemId, body=None, media_body=None, media_mime_type=None, x__xgafv=None)

Updates an existing item.

Method Details

close()
Close httplib2 connections.
get(itemId, projection=None, x__xgafv=None)
Gets your own Chrome Web Store item.

Args:
  itemId: string, Unique identifier representing the Chrome App, Chrome Extension, or the Chrome Theme. (required)
  projection: string, Determines which subset of the item information to return.
    Allowed values
      DRAFT - Return information extracted from the current draft.
      PUBLISHED - Return information extracted from the published item draft.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "crxVersion": "A String", # The CRX version of the item. If the projection is draft, then it is the draft's CRX version.
  "id": "A String", # Unique ID of the item.
  "itemError": [ # Detail human-readable status of the operation, in English only. Same error messages are displayed when you upload your app to the Chrome Web Store.
    { # Error of the item
      "error_code": "A String", # The error code.
      "error_detail": "A String", # The human-readable detail message of the error.
    },
  ],
  "kind": "A String", # Identifies this resource as an Item. Value: the fixed string "chromewebstore#item".
  "publicKey": "A String", # Public key of this item.
  "uploadState": "A String", # Status of the operation. Possible values are: - \"FAILURE\" - \"IN_PROGRESS\" - \"NOT_FOUND\" - \"SUCCESS\"
}
insert(media_body=None, media_mime_type=None, publisherEmail=None, x__xgafv=None)
Inserts a new item.

Args:
  media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
  media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
  publisherEmail: string, The email of the publisher who owns the items. Defaults to the caller's email address.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "crxVersion": "A String", # The CRX version of the item. If the projection is draft, then it is the draft's CRX version.
  "id": "A String", # Unique ID of the item.
  "itemError": [ # Detail human-readable status of the operation, in English only. Same error messages are displayed when you upload your app to the Chrome Web Store.
    { # Error of the item
      "error_code": "A String", # The error code.
      "error_detail": "A String", # The human-readable detail message of the error.
    },
  ],
  "kind": "A String", # Identifies this resource as an Item. Value: the fixed string "chromewebstore#item".
  "publicKey": "A String", # Public key of this item.
  "uploadState": "A String", # Status of the operation. Possible values are: - \"FAILURE\" - \"IN_PROGRESS\" - \"NOT_FOUND\" - \"SUCCESS\"
}
publish(itemId, body=None, deployPercentage=None, publishTarget=None, reviewExemption=None, x__xgafv=None)
Publishes an item.

Args:
  itemId: string, The ID of the item to publish. (required)
  body: object, The request body.
    The object takes the form of:

{
  "deployPercentage": 42, # The target deploy percentage of the item. It's only useful for items with big user base.
  "reviewExemption": True or False, # Optional. The caller request to exempt the review and directly publish because the update is within the list that we can automatically validate. The API will check if the exemption can be granted using real time data.
  "target": "A String", # The publish target of this publish operation. This is the same as using publishTarget as a URL query parameter. The string value can either be target="trustedTesters" or target="default". The default value, if none is supplied, is target="default". Recommended usage is to use the URL query parameter to specificy the value.
}

  deployPercentage: integer, The deploy percentage you want to set for your item. Valid values are [0, 100]. If set to any number less than 100, only that many percentage of users will be allowed to get the update.
  publishTarget: string, Provide defined publishTarget in URL (case sensitive): publishTarget="trustedTesters" or publishTarget="default". Defaults to publishTarget="default".
  reviewExemption: boolean, Optional. The caller request to exempt the review and directly publish because the update is within the list that we can automatically validate. The API will check if the exemption can be granted using real time data.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "item_id": "A String", # The ID of this item.
  "kind": "A String", # Static string value is always "chromewebstore#item".
  "status": [ # The status code of this publish operation. It may contain multiple elements from the following list: NOT_AUTHORIZED, INVALID_DEVELOPER, DEVELOPER_NO_OWNERSHIP, DEVELOPER_SUSPENDED, ITEM_NOT_FOUND, ITEM_PENDING_REVIEW, ITEM_TAKEN_DOWN, PUBLISHER_SUSPENDED.
    "A String",
  ],
  "statusDetail": [ # Detailed human-comprehensible explanation of the status code above.
    "A String",
  ],
}
update(itemId, body=None, media_body=None, media_mime_type=None, x__xgafv=None)
Updates an existing item.

Args:
  itemId: string, The ID of the item to upload. (required)
  body: object, The request body.
    The object takes the form of:

{
  "crxVersion": "A String", # The CRX version of the item. If the projection is draft, then it is the draft's CRX version.
  "id": "A String", # Unique ID of the item.
  "itemError": [ # Detail human-readable status of the operation, in English only. Same error messages are displayed when you upload your app to the Chrome Web Store.
    { # Error of the item
      "error_code": "A String", # The error code.
      "error_detail": "A String", # The human-readable detail message of the error.
    },
  ],
  "kind": "A String", # Identifies this resource as an Item. Value: the fixed string "chromewebstore#item".
  "publicKey": "A String", # Public key of this item.
  "uploadState": "A String", # Status of the operation. Possible values are: - \"FAILURE\" - \"IN_PROGRESS\" - \"NOT_FOUND\" - \"SUCCESS\"
}

  media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
  media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "crxVersion": "A String", # The CRX version of the item. If the projection is draft, then it is the draft's CRX version.
  "id": "A String", # Unique ID of the item.
  "itemError": [ # Detail human-readable status of the operation, in English only. Same error messages are displayed when you upload your app to the Chrome Web Store.
    { # Error of the item
      "error_code": "A String", # The error code.
      "error_detail": "A String", # The human-readable detail message of the error.
    },
  ],
  "kind": "A String", # Identifies this resource as an Item. Value: the fixed string "chromewebstore#item".
  "publicKey": "A String", # Public key of this item.
  "uploadState": "A String", # Status of the operation. Possible values are: - \"FAILURE\" - \"IN_PROGRESS\" - \"NOT_FOUND\" - \"SUCCESS\"
}