Method: spaces.list

Lists spaces the caller is a member of.

HTTP request

GET https://chat.googleapis.com/v1/spaces

The URL uses Google API HTTP annotation syntax.

Query parameters

Parameters
pageSize

number

Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100.

pageToken

string

A token identifying a page of results the server should return.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "spaces": [
    {
      object(Space)
    }
  ],
  "nextPageToken": string
}
Fields
spaces[]

object(Space)

List of spaces in the requested (or first) page.

nextPageToken

string

Continuation token to retrieve the next page of results. It will be empty for the last page of results. Tokens expire in an hour. An error is thrown if an expired token is passed.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/chat.bot

For more information, see the Auth Guide.

Enviar comentários sobre…

Precisa de ajuda? Acesse nossa página de suporte.