Enterprises: createWebToken

Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the javascript API documentation for further information.

Request

HTTP request

POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/createWebToken

Parameters

Parameter name Value Description
Path parameters
enterpriseId string The ID of the enterprise.

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/androidenterprise

For more information, see the authentication and authorization page.

Request body

In the request body, supply data with the following structure:

{
  "kind": "androidenterprise#administratorWebTokenSpec",
  "permission": [
    string
  ],
  "parent": string,
  "playSearch": {
    "enabled": boolean,
    "approveApps": boolean
  },
  "privateApps": {
    "enabled": boolean
  },
  "webApps": {
    "enabled": boolean
  },
  "storeBuilder": {
    "enabled": boolean
  },
  "managedConfigurations": {
    "enabled": boolean
  }
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "androidenterprise#administratorWebTokenSpec".
permission[] list Deprecated. Use PlaySearch.approveApps.
parent string The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may not be hosted at other URIs. This URI must be https. Use whitespaces to separate multiple parent URIs.
playSearch nested object Options for displaying the managed Play Search apps page.
playSearch.enabled boolean Whether the managed Play Search apps page is displayed. Default is true.
playSearch.approveApps boolean Allow access to the iframe in approve mode. Default is false.
privateApps nested object Options for displaying the Private Apps page.
privateApps.enabled boolean Whether the Private Apps page is displayed. Default is true.
webApps nested object Options for displaying the Web Apps page.
webApps.enabled boolean Whether the Web Apps page is displayed. Default is true.
storeBuilder nested object Options for displaying the Organize apps page.
storeBuilder.enabled boolean Whether the Organize apps page is displayed. Default is true.
managedConfigurations nested object Options for displaying the Managed Configuration page.
managedConfigurations.enabled boolean Whether the Managed Configuration page is displayed. Default is true.

Response

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

{
  "kind": "androidenterprise#administratorWebToken",
  "token": string
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "androidenterprise#administratorWebToken".
token string An opaque token to be passed to the Play front-end to generate an iframe.

Оставить отзыв о...

Текущей странице
Google Play EMM API