Accounts
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源表示形式
表示在 Glass 上传递到客户经理的账号。
{
"features": [
string
],
"password": string,
"userData": [
{
"key": string,
"value": string
}
],
"authTokens": [
{
"type": string,
"authToken": string
}
]
}
属性名称 |
值 |
说明 |
备注 |
authTokens[] |
list |
|
|
authTokens[].authToken |
string |
|
|
authTokens[].type |
string |
|
|
features[] |
list |
|
|
password |
string |
|
|
userData[] |
list |
|
|
userData[].key |
string |
|
|
userData[].value |
string |
|
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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"]]