UserLicenses:getUserLicence

Gets the user licenses for a Chrome App or Chrome Extension.

Request

HTTP request

GET https://www.googleapis.com/chromewebstore/v1.1/userlicenses/appId

Authorization

This request requires authorization with the following scope.

Scope
https://www.googleapis.com/auth/chromewebstore.readonly
The above URL is used as the scope parameter when generating an access token. For more details on API authorization and authentication, consult the OAuth 2.0 documentation.

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

JSON

{
  "kind": "chromewebstore#userLicense",
  "itemId": string,
  "createdTime": long,
  "result": boolean,
  "accessLevel": string,
  "maxAgeSecs": long
}
Property name Value Description
kind string Identifies this resource as a user license. Value: the fixed string chromewebstore#userLicense.
itemId string The ID of the item to query for in-app products.
createdTime long Creation time of license, formatted as a Unix timestamp .
result boolean TRUE = User has license. FALSE = User does not have license.
accessLevel string

Acceptable values are:
  • "FREE_TRIAL"
  • "FULL"
maxAgeSecs long Time that results can be cached.