This package has been deprecated

Author message:

WARNING: This project has been renamed to @classroomtechtools/chat-adv-service. Install using @classroomtechtools/chat-adv-service instead.

chat-adv-service

1.1.0 • Public • Published

Chat Advanced Service

Interact with the Google Chat API via AppsScripts.

Getting Started

  • Create a service account that has access to Chat API
  • Add ChatService to your project with Library ID 1XDYAGcUoblJ073Kjveni2WOZHpKLYE8qlYMkeHViavLXvsKnBIl1DR2A
  • Send the privateKey and issuerEmail to the ChatService.init method
  • The returning object has Spaces, Members, and Messages namespaces, which themselves have methods that match the reference documentation.
const Chat = ChatService.init('<privateKey>', '<issuerEmail>');
const rooms = Chat.Spaces.list();
Logger.log(rooms);

Motivation

AppsScript doesn't have a native advanced service to interact with the Chat API. And I need one, so I made one!

Possible Use Cases

  • A Google Form that opens a new thread on a Google Chat room on submission
  • Poll your domain for Chat room activity

Issues?

Currently used in production, but feedback welcome. Thanks for any contributions. Use the issue github tracker for issues.

Readme

Keywords

Package Sidebar

Install

npm i chat-adv-service

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

1.53 MB

Total Files

58

Last publish

Collaborators

  • classroomtechtools