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 nameValueDescription
kindstringIdentifies this resource as a user license. Value: the fixed string chromewebstore#userLicense.
itemIdstringThe ID of the item to query for in-app products.
createdTimelongCreation time of license, formatted as a Unix timestamp .
resultbooleanTRUE = User has license. FALSE = User does not have license.
accessLevelstring

Acceptable values are:
  • "FREE_TRIAL"
  • "FULL"
maxAgeSecslongTime that results can be cached.

Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.