Web Store API:Licenses

A Licences resource represents a licence purchased by the user for a hosted app.

Licenses representation

JSON

{
"kind": "chromewebstore#license",
"id": string,
"appId": string,
"userId": string,
"result": string,
"accessLevel": string,
"maxAgeSecs": long
}
Property nameValueDescription
accessLevelstring

Acceptable values are:
  • "FREE_TRIAL"
  • "FULL"
appIdstringChrome Web Store app ID. Get the app ID from the Chrome Developer Dashboard after you upload your app for the first time.
idstringThis value is a concatenation of the appId and userId seperated by a forward slash, for example: ekjjfhlnedeokeakcddlnockkdiacakf/8098347.
kindstringIdentifies this resource as a license. Value: the fixed string "chromewebstore#license".
maxAgeSecslongOnce you've got the response, cache is only valid for the max number of seconds.
resultstring
Acceptable values are:
  • "NO"
  • "YES"
userIdstringOpenID URL for the user's Google Account.

Methods

get
Gets the licenses for Chrome hosted apps.

Improve article

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