List
|
|||||
|
|
||||
Returns a list of aliases for a course.
This method returns the following error codes:
PERMISSION_DENIEDif the requesting user is not permitted to access the course or for access errors.NOT_FOUNDif the course does not exist
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- Manage your Google Classroom classes
- View your Google Classroom classes
Input
This building block consumes 3 input parameters
| Name | Format | Description |
|---|---|---|
courseId Required |
STRING |
The identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias |
pageToken |
STRING |
nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token |
pageSize |
INTEGER |
Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results |
= Parameter name
= Format
|
courseId STRING Required The identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias |
|
pageToken STRING nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token |
|
pageSize INTEGER Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results |
Output
This building block provides 3 output parameters
| Name | Format | Description |
|---|---|---|
aliases[] |
OBJECT |
Alternative identifier for a course. An alias uniquely identifies a course. It must be unique within one of the following scopes:
|
aliases[].alias |
STRING |
Alias string. The format of the string indicates the desired alias scoping.
This field has a maximum length of 256 characters |
nextPageToken |
STRING |
Token identifying the next page of results to return. If empty, no further results are available |
= Parameter name
= Format
|
aliases[] OBJECT Alternative identifier for a course. An alias uniquely identifies a course. It must be unique within one of the following scopes:
|
|
aliases[].alias STRING Alias string. The format of the string indicates the desired alias scoping.
This field has a maximum length of 256 characters |
|
nextPageToken STRING Token identifying the next page of results to return. If empty, no further results are available |