Accounts
Stay organized with collections
Save and categorize content based on your preferences.
For a list of methods for this resource, see the end of this page.
Resource representations
Represents an account passed into the Account Manager on Glass.
{
"features": [
string
],
"password": string,
"userData": [
{
"key": string,
"value": string
}
],
"authTokens": [
{
"type": string,
"authToken": string
}
]
}
Property name |
Value |
Description |
Notes |
authTokens[] |
list |
|
|
authTokens[].authToken |
string |
|
|
authTokens[].type |
string |
|
|
features[] |
list |
|
|
password |
string |
|
|
userData[] |
list |
|
|
userData[].key |
string |
|
|
userData[].value |
string |
|
|
Methods
- insert
- Inserts a new account for a user
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[null,null,["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eThis resource represents an account within the Glass platform's Account Manager.\u003c/p\u003e\n"],["\u003cp\u003eAccount data includes features, password, user data, and authentication tokens.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication tokens are differentiated by type and contain an authToken string.\u003c/p\u003e\n"],["\u003cp\u003eUser data is stored as key-value pairs within the account representation.\u003c/p\u003e\n"],["\u003cp\u003eAvailable methods for this resource are detailed at the bottom of the page and currently include an insert method for new accounts.\u003c/p\u003e\n"]]],[],null,["# Accounts\n\n\u003cbr /\u003e\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\nRepresents an account passed into the Account Manager on Glass.\n\n```carbon\n{\n \"features\": [\n string\n ],\n \"password\": string,\n \"userData\": [\n {\n \"key\": string,\n \"value\": string\n }\n ],\n \"authTokens\": [\n {\n \"type\": string,\n \"authToken\": string\n }\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|--------------------------|----------|-------------|-------|\n| `authTokens[]` | `list` | | |\n| authTokens[].`authToken` | `string` | | |\n| authTokens[].`type` | `string` | | |\n| `features[]` | `list` | | |\n| `password` | `string` | | |\n| `userData[]` | `list` | | |\n| userData[].`key` | `string` | | |\n| userData[].`value` | `string` | | |\n\nMethods\n-------\n\n[insert](/glass/v1/reference/accounts/insert)\n: Inserts a new account for a user"]]