Liking cljdoc? Tell your friends :D

happygapi.chat.spaces

Google Chat API: spaces. The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. See: https://developers.google.com/hangouts/chatdocs/reference/rest/v1/spaces

Google Chat API: spaces.
The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages.
See: https://developers.google.com/hangouts/chatdocs/reference/rest/v1/spaces
raw docstring

completeImport$clj

(completeImport$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/completeImport

Required parameters: name

Optional parameters: none

Body:

{}

Completes the import process for the specified space and makes it visible to users. Requires app authentication and domain-wide delegation. For more information, see Authorize Google Chat apps to import data.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/completeImport

Required parameters: name

Optional parameters: none

Body: 

{}

Completes the [import process](https://developers.google.com/workspace/chat/import-data) for the specified space and makes it visible to users. Requires app authentication and domain-wide delegation. For more information, see [Authorize Google Chat apps to import data](https://developers.google.com/workspace/chat/authorize-import).
raw docstring

create$clj

(create$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/create

Required parameters: none

Optional parameters: requestId

Body:

{:spaceDetails {:description string, :guidelines string}, :importMode boolean, :adminInstalled boolean, :displayName string, :name string, :createTime string, :type string, :threaded boolean, :externalUserAllowed boolean, :singleUserBotDm boolean, :spaceType string, :spaceThreadingState string, :spaceHistoryState string}

Creates a named space. Spaces grouped by topics aren't supported. For an example, see Create a space. If you receive the error message ALREADY_EXISTS when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name. Requires user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/create

Required parameters: none

Optional parameters: requestId

Body: 

{:spaceDetails {:description string, :guidelines string},
 :importMode boolean,
 :adminInstalled boolean,
 :displayName string,
 :name string,
 :createTime string,
 :type string,
 :threaded boolean,
 :externalUserAllowed boolean,
 :singleUserBotDm boolean,
 :spaceType string,
 :spaceThreadingState string,
 :spaceHistoryState string}

Creates a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/workspace/chat/create-spaces). If you receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

delete$clj

(delete$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/delete

Required parameters: name

Optional parameters: none

Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see Delete a space. Requires user authentication from a user who has permission to delete the space.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/delete

Required parameters: name

Optional parameters: none

Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/workspace/chat/delete-spaces). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) from a user who has permission to delete the space.
raw docstring

findDirectMessage$clj

(findDirectMessage$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/findDirectMessage

Required parameters: none

Optional parameters: name

Returns the existing direct message with the specified user. If no direct message space is found, returns a 404 NOT_FOUND error. For an example, see Find a direct message. With user authentication, returns the direct message space between the specified user and the authenticated user. With app authentication, returns the direct message space between the specified user and the calling Chat app. Requires user authentication or app authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/findDirectMessage

Required parameters: none

Optional parameters: name

Returns the existing direct message with the specified user. If no direct message space is found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), returns the direct message space between the specified user and the authenticated user. With [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), returns the direct message space between the specified user and the calling Chat app. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) or [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
raw docstring

get$clj

(get$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/get

Required parameters: name

Optional parameters: none

Returns details about a space. For an example, see Get details about a space. Requires authentication. Supports app authentication and user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/get

Required parameters: name

Optional parameters: none

Returns details about a space. For an example, see [Get details about a space](https://developers.google.com/workspace/chat/get-spaces). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

list$clj

(list$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/list

Required parameters: none

Optional parameters: pageSize, pageToken, filter

Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see List spaces. Requires authentication. Supports app authentication and user authentication. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent. To list all named spaces by Google Workspace organization, use the spaces.search() method using Workspace administrator privileges instead.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/list

Required parameters: none

Optional parameters: pageSize, pageToken, filter

Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent. To list all named spaces by Google Workspace organization, use the `spaces.search()` method using Workspace administrator privileges instead.
raw docstring

members-create$clj

(members-create$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/create

Required parameters: parent

Optional parameters: none

Body:

{:name string, :state string, :role string, :member {:name string, :displayName string, :domainId string, :type string, :isAnonymous boolean}, :groupMember {:name string}, :createTime string, :deleteTime string}

Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. For an example, see Invite or add a user or a Google Chat app to a space. When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires user authentication. To specify the member to add, set the membership.member.name for the human or app member. - To add the calling app to a space or a direct message between two human users, use users/app. Unable to add other apps to the space. - To add a human user, use users/{user}, where {user} can be the email address for the user. For users in the same Workspace organization {user} can also be the id for the person from the People API, or the id for the user in the Directory API. For example, if the People API Person profile ID for user@example.com is 123456789, you can add the user to the space by setting the membership.member.name to users/user@example.com or users/123456789.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/create

Required parameters: parent

Optional parameters: none

Body: 

{:name string,
 :state string,
 :role string,
 :member {:name string,
          :displayName string,
          :domainId string,
          :type string,
          :isAnonymous boolean},
 :groupMember {:name string},
 :createTime string,
 :deleteTime string}

Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. For an example, see [Invite or add a user or a Google Chat app to a space](https://developers.google.com/workspace/chat/create-members). When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). To specify the member to add, set the `membership.member.name` for the human or app member. - To add the calling app to a space or a direct message between two human users, use `users/app`. Unable to add other apps to the space. - To add a human user, use `users/{user}`, where `{user}` can be the email address for the user. For users in the same Workspace organization `{user}` can also be the `id` for the person from the People API, or the `id` for the user in the Directory API. For example, if the People API Person profile ID for `user@example.com` is `123456789`, you can add the user to the space by setting the `membership.member.name` to `users/user@example.com` or `users/123456789`.
raw docstring

members-delete$clj

(members-delete$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/delete

Required parameters: name

Optional parameters: none

Deletes a membership. For an example, see Remove a user or a Google Chat app from a space. Requires user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/delete

Required parameters: name

Optional parameters: none

Deletes a membership. For an example, see [Remove a user or a Google Chat app from a space](https://developers.google.com/workspace/chat/delete-members). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

members-get$clj

(members-get$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/get

Required parameters: name

Optional parameters: none

Returns details about a membership. For an example, see Get details about a user's or Google Chat app's membership. Requires authentication. Supports app authentication and user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/get

Required parameters: name

Optional parameters: none

Returns details about a membership. For an example, see [Get details about a user's or Google Chat app's membership](https://developers.google.com/workspace/chat/get-members). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

members-list$clj

(members-list$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/list

Required parameters: parent

Optional parameters: pageSize, pageToken, filter, showGroups, showInvited

Lists memberships in a space. For an example, see List users and Google Chat apps in a space. Listing memberships with app authentication lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with User authentication lists memberships in spaces that the authenticated user has access to. Requires authentication. Supports app authentication and user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/list

Required parameters: parent

Optional parameters: pageSize, pageToken, filter, showGroups, showInvited

Lists memberships in a space. For an example, see [List users and Google Chat apps in a space](https://developers.google.com/workspace/chat/list-members). Listing memberships with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) lists memberships in spaces that the authenticated user has access to. Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

members-patch$clj

(members-patch$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/patch

Required parameters: name

Optional parameters: updateMask

Body:

{:name string, :state string, :role string, :member {:name string, :displayName string, :domainId string, :type string, :isAnonymous boolean}, :groupMember {:name string}, :createTime string, :deleteTime string}

Updates a membership. For an example, see Update a user's membership in a space. Requires user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/members/patch

Required parameters: name

Optional parameters: updateMask

Body: 

{:name string,
 :state string,
 :role string,
 :member {:name string,
          :displayName string,
          :domainId string,
          :type string,
          :isAnonymous boolean},
 :groupMember {:name string},
 :createTime string,
 :deleteTime string}

Updates a membership. For an example, see [Update a user's membership in a space](https://developers.google.com/workspace/chat/update-members). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

messages-attachments-get$clj

(messages-attachments-get$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/attachments/get

Required parameters: name

Optional parameters: none

Gets the metadata of a message attachment. The attachment data is fetched using the media API. For an example, see Get metadata about a message attachment. Requires app authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/attachments/get

Required parameters: name

Optional parameters: none

Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download). For an example, see [Get metadata about a message attachment](https://developers.google.com/workspace/chat/get-media-attachments). Requires [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
raw docstring

messages-create$clj

(messages-create$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/create

Required parameters: parent

Optional parameters: threadKey, requestId, messageReplyOption, messageId

Body:

{:attachedGifs [{:uri string}], :threadReply boolean, :space {:spaceDetails SpaceDetails, :importMode boolean, :adminInstalled boolean, :displayName string, :name string, :createTime string, :type string, :threaded boolean, :externalUserAllowed boolean, :singleUserBotDm boolean, :spaceType string, :spaceThreadingState string, :spaceHistoryState string}, :deleteTime string, :deletionMetadata {:deletionType string}, :fallbackText string, :quotedMessageMetadata {:name string, :lastUpdateTime string}, :name string, :createTime string, :argumentText string, :emojiReactionSummaries [{:emoji Emoji, :reactionCount integer}], :matchedUrl {:url string}, :thread {:name string, :threadKey string}, :actionResponse {:type string, :url string, :dialogAction DialogAction, :updatedWidget UpdatedWidget}, :sender {:name string, :displayName string, :domainId string, :type string, :isAnonymous boolean}, :cards [{:header CardHeader, :sections [Section], :cardActions [CardAction], :name string}], :lastUpdateTime string, :privateMessageViewer {:name string, :displayName string, :domainId string, :type string, :isAnonymous boolean}, :formattedText string, :annotations [{:type string, :startIndex integer, :length integer, :userMention UserMentionMetadata, :slashCommand SlashCommandMetadata, :richLinkMetadata RichLinkMetadata}], :slashCommand {:commandId string}, :cardsV2 [{:cardId string, :card GoogleAppsCardV1Card}], :clientAssignedMessageId string, :attachment [{:name string, :contentName string, :contentType string, :attachmentDataRef AttachmentDataRef, :driveDataRef DriveDataRef, :thumbnailUri string, :downloadUri string, :source string}], :text string, :accessoryWidgets [{:buttonList GoogleAppsCardV1ButtonList}]}

Creates a message in a Google Chat space. The maximum message size, including text and cards, is 32,000 bytes. For an example, see Send a message. Calling this method requires authentication and supports the following authentication types: - For text messages, user authentication or app authentication are supported. - For card messages, only app authentication is supported. (Only Chat apps can create card messages.)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/create

Required parameters: parent

Optional parameters: threadKey, requestId, messageReplyOption, messageId

Body: 

{:attachedGifs [{:uri string}],
 :threadReply boolean,
 :space {:spaceDetails SpaceDetails,
         :importMode boolean,
         :adminInstalled boolean,
         :displayName string,
         :name string,
         :createTime string,
         :type string,
         :threaded boolean,
         :externalUserAllowed boolean,
         :singleUserBotDm boolean,
         :spaceType string,
         :spaceThreadingState string,
         :spaceHistoryState string},
 :deleteTime string,
 :deletionMetadata {:deletionType string},
 :fallbackText string,
 :quotedMessageMetadata {:name string, :lastUpdateTime string},
 :name string,
 :createTime string,
 :argumentText string,
 :emojiReactionSummaries [{:emoji Emoji, :reactionCount integer}],
 :matchedUrl {:url string},
 :thread {:name string, :threadKey string},
 :actionResponse {:type string,
                  :url string,
                  :dialogAction DialogAction,
                  :updatedWidget UpdatedWidget},
 :sender {:name string,
          :displayName string,
          :domainId string,
          :type string,
          :isAnonymous boolean},
 :cards [{:header CardHeader,
          :sections [Section],
          :cardActions [CardAction],
          :name string}],
 :lastUpdateTime string,
 :privateMessageViewer {:name string,
                        :displayName string,
                        :domainId string,
                        :type string,
                        :isAnonymous boolean},
 :formattedText string,
 :annotations [{:type string,
                :startIndex integer,
                :length integer,
                :userMention UserMentionMetadata,
                :slashCommand SlashCommandMetadata,
                :richLinkMetadata RichLinkMetadata}],
 :slashCommand {:commandId string},
 :cardsV2 [{:cardId string, :card GoogleAppsCardV1Card}],
 :clientAssignedMessageId string,
 :attachment [{:name string,
               :contentName string,
               :contentType string,
               :attachmentDataRef AttachmentDataRef,
               :driveDataRef DriveDataRef,
               :thumbnailUri string,
               :downloadUri string,
               :source string}],
 :text string,
 :accessoryWidgets [{:buttonList GoogleAppsCardV1ButtonList}]}

Creates a message in a Google Chat space. The maximum message size, including text and cards, is 32,000 bytes. For an example, see [Send a message](https://developers.google.com/workspace/chat/create-messages). Calling this method requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize) and supports the following authentication types: - For text messages, user authentication or app authentication are supported. - For card messages, only app authentication is supported. (Only Chat apps can create card messages.)
raw docstring

messages-delete$clj

(messages-delete$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/delete

Required parameters: name

Optional parameters: force

Deletes a message. For an example, see Delete a message. Requires authentication. Supports app authentication and user authentication. When using app authentication, requests can only delete messages created by the calling Chat app.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/delete

Required parameters: name

Optional parameters: force

Deletes a message. For an example, see [Delete a message](https://developers.google.com/workspace/chat/delete-messages). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). When using app authentication, requests can only delete messages created by the calling Chat app.
raw docstring

messages-get$clj

(messages-get$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/get

Required parameters: name

Optional parameters: none

Returns details about a message. For an example, see Get details about a message. Requires authentication. Supports app authentication and user authentication. Note: Might return a message from a blocked member or space.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/get

Required parameters: name

Optional parameters: none

Returns details about a message. For an example, see [Get details about a message](https://developers.google.com/workspace/chat/get-messages). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). Note: Might return a message from a blocked member or space.
raw docstring

messages-list$clj

(messages-list$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/list

Required parameters: parent

Optional parameters: pageSize, pageToken, filter, orderBy, showDeleted

Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see List messages. Requires user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/list

Required parameters: parent

Optional parameters: pageSize, pageToken, filter, orderBy, showDeleted

Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

messages-patch$clj

(messages-patch$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/patch

Required parameters: name

Optional parameters: updateMask, allowMissing

Body:

{:attachedGifs [{:uri string}], :threadReply boolean, :space {:spaceDetails SpaceDetails, :importMode boolean, :adminInstalled boolean, :displayName string, :name string, :createTime string, :type string, :threaded boolean, :externalUserAllowed boolean, :singleUserBotDm boolean, :spaceType string, :spaceThreadingState string, :spaceHistoryState string}, :deleteTime string, :deletionMetadata {:deletionType string}, :fallbackText string, :quotedMessageMetadata {:name string, :lastUpdateTime string}, :name string, :createTime string, :argumentText string, :emojiReactionSummaries [{:emoji Emoji, :reactionCount integer}], :matchedUrl {:url string}, :thread {:name string, :threadKey string}, :actionResponse {:type string, :url string, :dialogAction DialogAction, :updatedWidget UpdatedWidget}, :sender {:name string, :displayName string, :domainId string, :type string, :isAnonymous boolean}, :cards [{:header CardHeader, :sections [Section], :cardActions [CardAction], :name string}], :lastUpdateTime string, :privateMessageViewer {:name string, :displayName string, :domainId string, :type string, :isAnonymous boolean}, :formattedText string, :annotations [{:type string, :startIndex integer, :length integer, :userMention UserMentionMetadata, :slashCommand SlashCommandMetadata, :richLinkMetadata RichLinkMetadata}], :slashCommand {:commandId string}, :cardsV2 [{:cardId string, :card GoogleAppsCardV1Card}], :clientAssignedMessageId string, :attachment [{:name string, :contentName string, :contentType string, :attachmentDataRef AttachmentDataRef, :driveDataRef DriveDataRef, :thumbnailUri string, :downloadUri string, :source string}], :text string, :accessoryWidgets [{:buttonList GoogleAppsCardV1ButtonList}]}

Updates a message. There's a difference between the patch and update methods. The patch method uses a patch request while the update method uses a put request. We recommend using the patch method. For an example, see Update a message. Requires authentication. Supports app authentication and user authentication. When using app authentication, requests can only update messages created by the calling Chat app.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/patch

Required parameters: name

Optional parameters: updateMask, allowMissing

Body: 

{:attachedGifs [{:uri string}],
 :threadReply boolean,
 :space {:spaceDetails SpaceDetails,
         :importMode boolean,
         :adminInstalled boolean,
         :displayName string,
         :name string,
         :createTime string,
         :type string,
         :threaded boolean,
         :externalUserAllowed boolean,
         :singleUserBotDm boolean,
         :spaceType string,
         :spaceThreadingState string,
         :spaceHistoryState string},
 :deleteTime string,
 :deletionMetadata {:deletionType string},
 :fallbackText string,
 :quotedMessageMetadata {:name string, :lastUpdateTime string},
 :name string,
 :createTime string,
 :argumentText string,
 :emojiReactionSummaries [{:emoji Emoji, :reactionCount integer}],
 :matchedUrl {:url string},
 :thread {:name string, :threadKey string},
 :actionResponse {:type string,
                  :url string,
                  :dialogAction DialogAction,
                  :updatedWidget UpdatedWidget},
 :sender {:name string,
          :displayName string,
          :domainId string,
          :type string,
          :isAnonymous boolean},
 :cards [{:header CardHeader,
          :sections [Section],
          :cardActions [CardAction],
          :name string}],
 :lastUpdateTime string,
 :privateMessageViewer {:name string,
                        :displayName string,
                        :domainId string,
                        :type string,
                        :isAnonymous boolean},
 :formattedText string,
 :annotations [{:type string,
                :startIndex integer,
                :length integer,
                :userMention UserMentionMetadata,
                :slashCommand SlashCommandMetadata,
                :richLinkMetadata RichLinkMetadata}],
 :slashCommand {:commandId string},
 :cardsV2 [{:cardId string, :card GoogleAppsCardV1Card}],
 :clientAssignedMessageId string,
 :attachment [{:name string,
               :contentName string,
               :contentType string,
               :attachmentDataRef AttachmentDataRef,
               :driveDataRef DriveDataRef,
               :thumbnailUri string,
               :downloadUri string,
               :source string}],
 :text string,
 :accessoryWidgets [{:buttonList GoogleAppsCardV1ButtonList}]}

Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/workspace/chat/update-messages). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). When using app authentication, requests can only update messages created by the calling Chat app.
raw docstring

messages-reactions-create$clj

(messages-reactions-create$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/reactions/create

Required parameters: parent

Optional parameters: none

Body:

{:name string, :user {:name string, :displayName string, :domainId string, :type string, :isAnonymous boolean}, :emoji {:unicode string, :customEmoji CustomEmoji}}

Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, see Add a reaction to a message. Requires user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/reactions/create

Required parameters: parent

Optional parameters: none

Body: 

{:name string,
 :user {:name string,
        :displayName string,
        :domainId string,
        :type string,
        :isAnonymous boolean},
 :emoji {:unicode string, :customEmoji CustomEmoji}}

Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, see [Add a reaction to a message](https://developers.google.com/workspace/chat/create-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

messages-reactions-delete$clj

(messages-reactions-delete$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/reactions/delete

Required parameters: name

Optional parameters: none

Deletes a reaction to a message. Only unicode emojis are supported. For an example, see Delete a reaction. Requires user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/reactions/delete

Required parameters: name

Optional parameters: none

Deletes a reaction to a message. Only unicode emojis are supported. For an example, see [Delete a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

messages-reactions-list$clj

(messages-reactions-list$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/reactions/list

Required parameters: parent

Optional parameters: pageSize, pageToken, filter

Lists reactions to a message. For an example, see List reactions for a message. Requires user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/reactions/list

Required parameters: parent

Optional parameters: pageSize, pageToken, filter

Lists reactions to a message. For an example, see [List reactions for a message](https://developers.google.com/workspace/chat/list-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

messages-update$clj

(messages-update$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/update

Required parameters: name

Optional parameters: updateMask, allowMissing

Body:

{:attachedGifs [{:uri string}], :threadReply boolean, :space {:spaceDetails SpaceDetails, :importMode boolean, :adminInstalled boolean, :displayName string, :name string, :createTime string, :type string, :threaded boolean, :externalUserAllowed boolean, :singleUserBotDm boolean, :spaceType string, :spaceThreadingState string, :spaceHistoryState string}, :deleteTime string, :deletionMetadata {:deletionType string}, :fallbackText string, :quotedMessageMetadata {:name string, :lastUpdateTime string}, :name string, :createTime string, :argumentText string, :emojiReactionSummaries [{:emoji Emoji, :reactionCount integer}], :matchedUrl {:url string}, :thread {:name string, :threadKey string}, :actionResponse {:type string, :url string, :dialogAction DialogAction, :updatedWidget UpdatedWidget}, :sender {:name string, :displayName string, :domainId string, :type string, :isAnonymous boolean}, :cards [{:header CardHeader, :sections [Section], :cardActions [CardAction], :name string}], :lastUpdateTime string, :privateMessageViewer {:name string, :displayName string, :domainId string, :type string, :isAnonymous boolean}, :formattedText string, :annotations [{:type string, :startIndex integer, :length integer, :userMention UserMentionMetadata, :slashCommand SlashCommandMetadata, :richLinkMetadata RichLinkMetadata}], :slashCommand {:commandId string}, :cardsV2 [{:cardId string, :card GoogleAppsCardV1Card}], :clientAssignedMessageId string, :attachment [{:name string, :contentName string, :contentType string, :attachmentDataRef AttachmentDataRef, :driveDataRef DriveDataRef, :thumbnailUri string, :downloadUri string, :source string}], :text string, :accessoryWidgets [{:buttonList GoogleAppsCardV1ButtonList}]}

Updates a message. There's a difference between the patch and update methods. The patch method uses a patch request while the update method uses a put request. We recommend using the patch method. For an example, see Update a message. Requires authentication. Supports app authentication and user authentication. When using app authentication, requests can only update messages created by the calling Chat app.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/messages/update

Required parameters: name

Optional parameters: updateMask, allowMissing

Body: 

{:attachedGifs [{:uri string}],
 :threadReply boolean,
 :space {:spaceDetails SpaceDetails,
         :importMode boolean,
         :adminInstalled boolean,
         :displayName string,
         :name string,
         :createTime string,
         :type string,
         :threaded boolean,
         :externalUserAllowed boolean,
         :singleUserBotDm boolean,
         :spaceType string,
         :spaceThreadingState string,
         :spaceHistoryState string},
 :deleteTime string,
 :deletionMetadata {:deletionType string},
 :fallbackText string,
 :quotedMessageMetadata {:name string, :lastUpdateTime string},
 :name string,
 :createTime string,
 :argumentText string,
 :emojiReactionSummaries [{:emoji Emoji, :reactionCount integer}],
 :matchedUrl {:url string},
 :thread {:name string, :threadKey string},
 :actionResponse {:type string,
                  :url string,
                  :dialogAction DialogAction,
                  :updatedWidget UpdatedWidget},
 :sender {:name string,
          :displayName string,
          :domainId string,
          :type string,
          :isAnonymous boolean},
 :cards [{:header CardHeader,
          :sections [Section],
          :cardActions [CardAction],
          :name string}],
 :lastUpdateTime string,
 :privateMessageViewer {:name string,
                        :displayName string,
                        :domainId string,
                        :type string,
                        :isAnonymous boolean},
 :formattedText string,
 :annotations [{:type string,
                :startIndex integer,
                :length integer,
                :userMention UserMentionMetadata,
                :slashCommand SlashCommandMetadata,
                :richLinkMetadata RichLinkMetadata}],
 :slashCommand {:commandId string},
 :cardsV2 [{:cardId string, :card GoogleAppsCardV1Card}],
 :clientAssignedMessageId string,
 :attachment [{:name string,
               :contentName string,
               :contentType string,
               :attachmentDataRef AttachmentDataRef,
               :driveDataRef DriveDataRef,
               :thumbnailUri string,
               :downloadUri string,
               :source string}],
 :text string,
 :accessoryWidgets [{:buttonList GoogleAppsCardV1ButtonList}]}

Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/workspace/chat/update-messages). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). When using app authentication, requests can only update messages created by the calling Chat app.
raw docstring

patch$clj

(patch$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/patch

Required parameters: name

Optional parameters: updateMask

Body:

{:spaceDetails {:description string, :guidelines string}, :importMode boolean, :adminInstalled boolean, :displayName string, :name string, :createTime string, :type string, :threaded boolean, :externalUserAllowed boolean, :singleUserBotDm boolean, :spaceType string, :spaceThreadingState string, :spaceHistoryState string}

Updates a space. For an example, see Update a space. If you're updating the displayName field and receive the error message ALREADY_EXISTS, try a different display name.. An existing space within the Google Workspace organization might already use this display name. Requires user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/patch

Required parameters: name

Optional parameters: updateMask

Body: 

{:spaceDetails {:description string, :guidelines string},
 :importMode boolean,
 :adminInstalled boolean,
 :displayName string,
 :name string,
 :createTime string,
 :type string,
 :threaded boolean,
 :externalUserAllowed boolean,
 :singleUserBotDm boolean,
 :spaceType string,
 :spaceThreadingState string,
 :spaceHistoryState string}

Updates a space. For an example, see [Update a space](https://developers.google.com/workspace/chat/update-spaces). If you're updating the `displayName` field and receive the error message `ALREADY_EXISTS`, try a different display name.. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

setup$clj

(setup$ auth parameters body)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/setup

Required parameters: none

Optional parameters: none

Body:

{:space {:spaceDetails SpaceDetails, :importMode boolean, :adminInstalled boolean, :displayName string, :name string, :createTime string, :type string, :threaded boolean, :externalUserAllowed boolean, :singleUserBotDm boolean, :spaceType string, :spaceThreadingState string, :spaceHistoryState string}, :requestId string, :memberships [{:name string, :state string, :role string, :member User, :groupMember Group, :createTime string, :deleteTime string}]}

Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see Set up a space with initial members. To specify the human members to add, add memberships with the appropriate membership.member.name. To add a human user, use users/{user}, where {user} can be the email address for the user. For users in the same Workspace organization {user} can also be the id for the person from the People API, or the id for the user in the Directory API. For example, if the People API Person profile ID for user@example.com is 123456789, you can add the user to the space by setting the membership.member.name to users/user@example.com or users/123456789. For a named space or group chat, if the caller blocks, or is blocked by some members, or doesn't have permission to add some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set Space.singleUserBotDm to true and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see Invite or add a user or app to a space. If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies aren't supported. If you receive the error message ALREADY_EXISTS when setting up a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name. Requires user authentication.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/setup

Required parameters: none

Optional parameters: none

Body: 

{:space {:spaceDetails SpaceDetails,
         :importMode boolean,
         :adminInstalled boolean,
         :displayName string,
         :name string,
         :createTime string,
         :type string,
         :threaded boolean,
         :externalUserAllowed boolean,
         :singleUserBotDm boolean,
         :spaceType string,
         :spaceThreadingState string,
         :spaceHistoryState string},
 :requestId string,
 :memberships [{:name string,
                :state string,
                :role string,
                :member User,
                :groupMember Group,
                :createTime string,
                :deleteTime string}]}

Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space with initial members](https://developers.google.com/workspace/chat/set-up-spaces). To specify the human members to add, add memberships with the appropriate `membership.member.name`. To add a human user, use `users/{user}`, where `{user}` can be the email address for the user. For users in the same Workspace organization `{user}` can also be the `id` for the person from the People API, or the `id` for the user in the Directory API. For example, if the People API Person profile ID for `user@example.com` is `123456789`, you can add the user to the space by setting the `membership.member.name` to `users/user@example.com` or `users/123456789`. For a named space or group chat, if the caller blocks, or is blocked by some members, or doesn't have permission to add some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see [Invite or add a user or app to a space](https://developers.google.com/workspace/chat/create-members). If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies aren't supported. If you receive the error message `ALREADY_EXISTS` when setting up a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
raw docstring

spaceEvents-get$clj

(spaceEvents-get$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/spaceEvents/get

Required parameters: name

Optional parameters: none

Returns an event from a Google Chat space. The event payload contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated Message resource in the event payload. Requires user authentication. To get an event, the authenticated user must be a member of the space. For an example, see Get details about an event from a Google Chat space.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/spaceEvents/get

Required parameters: name

Optional parameters: none

Returns an event from a Google Chat space. The [event payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated `Message` resource in the event payload. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). To get an event, the authenticated user must be a member of the space. For an example, see [Get details about an event from a Google Chat space](https://developers.google.com/workspace/chat/get-space-event).
raw docstring

spaceEvents-list$clj

(spaceEvents-list$ auth parameters)

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/spaceEvents/list

Required parameters: parent

Optional parameters: pageSize, pageToken, filter

Lists events from a Google Chat space. For each event, the payload contains the most recent version of the Chat resource. For example, if you list events about new space members, the server returns Membership resources that contain the latest membership details. If new members were removed during the requested period, the event payload contains an empty Membership resource. Requires user authentication. To list events, the authenticated user must be a member of the space. For an example, see List events from a Google Chat space.

https://developers.google.com/hangouts/chatapi/reference/rest/v1/spaces/spaceEvents/list

Required parameters: parent

Optional parameters: pageSize, pageToken, filter

Lists events from a Google Chat space. For each event, the [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the Chat resource. For example, if you list events about new space members, the server returns `Membership` resources that contain the latest membership details. If new members were removed during the requested period, the event payload contains an empty `Membership` resource. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). To list events, the authenticated user must be a member of the space. For an example, see [List events from a Google Chat space](https://developers.google.com/workspace/chat/list-space-events).
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close