class SpacesMessagesReactions extends Resource (View source)

The "reactions" collection of methods.

Typical usage is:

 $chatService = new Google\Service\HangoutsChat(...);
 $reactions = $chatService->spaces_messages_reactions;

Methods

create(string $parent, Reaction $postBody, array $optParams = [])

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

delete(string $name, array $optParams = [])

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

listSpacesMessagesReactions(string $parent, array $optParams = [])

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

Details

Reaction create(string $parent, Reaction $postBody, array $optParams = [])

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. (reactions.create)

Parameters

string $parent

Required. The message where the reaction is created. Format: spaces/{space}/messages/{message}

Reaction $postBody
array $optParams

Optional parameters.

Return Value

Reaction

Exceptions

Exception

ChatEmpty delete(string $name, array $optParams = [])

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

Requires user authentication. (reactions.delete)

Parameters

string $name

Required. Name of the reaction to delete. Format: spaces/{space}/messages/{message}/reactions/{reaction}

array $optParams

Optional parameters.

Return Value

ChatEmpty

Exceptions

Exception

ListReactionsResponse listSpacesMessagesReactions(string $parent, array $optParams = [])

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

Requires user authentication. (reactions.listSpacesMessagesReactions)

Parameters

string $parent

Required. The message users reacted to. Format: spaces/{space}/messages/{message}

array $optParams

Optional parameters.

Return Value

ListReactionsResponse

Exceptions

Exception