# Google Chat API . spaces . members

## Instance Methods

Close httplib2 connections.

Returns a membership. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).

Lists human memberships in a space. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).

Retrieves the next page of results.

### Method Details

`close()`

    Close httplib2 connections.

`get(name, x__xgafv=None)`

    Returns a membership. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).

    Args:
      name: string, Required. Resource name of the membership to be retrieved, in the form "spaces/*/members/*". Example: spaces/AAAAAAAAAAAA/members/111111111111111111111 (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a membership relation in Google Chat.
      "createTime": "A String", # Output only. The creation time of the membership a.k.a. the time at which the member joined the space, if applicable.
      "member": { # A user in Google Chat. # A user in Google Chat. Represents a [person](https://developers.google.com/people/api/rest/v1/people) in the People API or a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. Format: `users/{user}`
        "displayName": "A String", # The user's display name.
        "domainId": "A String", # Unique identifier of the user's Google Workspace domain.
        "isAnonymous": True or False, # When `true`, the user is deleted or their profile is not visible.
        "name": "A String", # Resource name for a Google Chat user. Represents a [person](https://developers.google.com/people/api/rest/v1/people#Person) in the People API or a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. Formatted as: `users/{user}`
        "type": "A String", # User type.
      },
      "name": "A String",
      "state": "A String", # Output only. State of the membership.
    }

`list(parent, pageSize=None, pageToken=None, x__xgafv=None)`

    Lists human memberships in a space. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).

    Args:
      parent: string, Required. The resource name of the space for which membership list is to be fetched, in the form "spaces/*". Example: spaces/AAAAAAAAAAAA (required)
      pageSize: integer, 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.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        {
      "memberships": [ # List of memberships in the requested (or first) page.
        { # Represents a membership relation in Google Chat.
          "createTime": "A String", # Output only. The creation time of the membership a.k.a. the time at which the member joined the space, if applicable.
          "member": { # A user in Google Chat. # A user in Google Chat. Represents a [person](https://developers.google.com/people/api/rest/v1/people) in the People API or a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. Format: `users/{user}`
            "displayName": "A String", # The user's display name.
            "domainId": "A String", # Unique identifier of the user's Google Workspace domain.
            "isAnonymous": True or False, # When `true`, the user is deleted or their profile is not visible.
            "name": "A String", # Resource name for a Google Chat user. Represents a [person](https://developers.google.com/people/api/rest/v1/people#Person) in the People API or a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. Formatted as: `users/{user}`
            "type": "A String", # User type.
          },
          "name": "A String",
          "state": "A String", # Output only. State of the membership.
        },
      ],
      "nextPageToken": "A String", # Continuation token to retrieve the next page of results. It will be empty for the last page of results.
    }

`list_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.