Accounts
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Listę metod dla tego zasobu znajdziesz na końcu tej strony.
Reprezentacje zasobów
Reprezentuje konto przekazane do menedżera konta na Google Glass.
{
"features": [
string
],
"password": string,
"userData": [
{
"key": string,
"value": string
}
],
"authTokens": [
{
"type": string,
"authToken": string
}
]
}
Nazwa usługi |
Wartość |
Opis |
Uwagi |
authTokens[] |
list |
|
|
authTokens[].authToken |
string |
|
|
authTokens[].type |
string |
|
|
features[] |
list |
|
|
password |
string |
|
|
userData[] |
list |
|
|
userData[].key |
string |
|
|
userData[].value |
string |
|
|
Metody
- wstaw
- Wstawia nowe konto użytkownika
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 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"]]