REST Resource: courses.aliases
资源:CourseAlias
课程的替代标识符。
别名是课程的唯一标识。它必须是以下范围内的唯一值:
网域:网域范围的别名对别名创建者网域中的所有用户可见,且只能由网域管理员创建。如果课程在 Google 课堂外部有标识符,通常可以使用网域范围的别名。
项目:使用开发者控制台项目 ID 创建的任何应用都可以查看项目范围的别名,任何项目都可以创建别名。通常,当应用具有备用标识符时,会使用项目范围的别名。一个随机值还可用于在传输失败时避免重复课程,因为如果之前请求成功,则重试请求将返回 ALREADY_EXISTS
。
JSON 表示法 |
{
"alias": string
} |
字段 |
alias |
string
别名字符串。该字符串的格式表示所需的别名范围。
d:<name> 表示网域范围的别名。 例如:d:math_101
p:<name> 表示项目范围的别名。 例如:p:abc123
此字段的长度上限为 256 个字符。
|
方法 |
|
为课程创建别名。 |
|
删除课程的别名。 |
|
返回课程的别名列表。 |
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 2022-03-21 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]