class HangoutsChat extends Service (View source)

Service definition for HangoutsChat (v1).

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.

For more information about this service, see the API Documentation

Constants

CHAT_ADMIN_DELETE

Delete conversations and spaces owned by your organization and remove access to associated files in Google Chat.

CHAT_ADMIN_MEMBERSHIPS

View, add, update and remove members and managers in conversations owned by your organization.

CHAT_ADMIN_MEMBERSHIPS_READONLY

View members and managers in conversations owned by your organization.

CHAT_ADMIN_SPACES

View or edit display name, description, and other metadata for all Google Chat conversations owned by your organization.

CHAT_ADMIN_SPACES_READONLY

View display name, description, and other metadata for all Google Chat conversations owned by your organization.

CHAT_BOT

Private Service: https://www.googleapis.com/auth/chat.bot.

CHAT_DELETE

Delete conversations and spaces and remove access to associated files in Google Chat.

CHAT_IMPORT

Import spaces, messages, and memberships into Google Chat.

.

CHAT_MEMBERSHIPS

See, add, update, and remove members from conversations and spaces in Google Chat.

CHAT_MEMBERSHIPS_APP

Add and remove itself from conversations and spaces in Google Chat.

CHAT_MEMBERSHIPS_READONLY

View members in Google Chat conversations.

.

CHAT_MESSAGES

See, compose, send, update, and delete messages and their associated attachments, and add, see, and delete reactions to messages.

.

CHAT_MESSAGES_CREATE

Compose and send messages in Google Chat.

CHAT_MESSAGES_REACTIONS

See, add, and delete reactions to messages in Google Chat.

CHAT_MESSAGES_REACTIONS_CREATE

Add reactions to messages in Google Chat.

CHAT_MESSAGES_REACTIONS_READONLY

View reactions to messages in Google Chat.

CHAT_MESSAGES_READONLY

See messages and their associated reactions and attachments in Google Chat.

CHAT_SPACES

Create conversations and spaces and see or update metadata (including history settings and access settings) in Google Chat.

CHAT_SPACES_CREATE

Create new conversations and spaces in Google Chat.

CHAT_SPACES_READONLY

View chat and spaces in Google Chat.

CHAT_USERS_READSTATE

View and modify last read time for Google Chat conversations.

CHAT_USERS_READSTATE_READONLY

View last read time for Google Chat conversations.

Properties

$media
$spaces
$spaces_members
$spaces_messages
$spaces_messages_attachments
$spaces_messages_reactions
$spaces_spaceEvents
$users_spaces
$users_spaces_threads
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the HangoutsChat service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the HangoutsChat service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.