Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

google-business-communications/bc-snippets-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Business Communication: NodeJS snippets

These code snippets demonstrate how to perform operations with the Business Comunications API using NodeJS.

This project contains multiple examples. Each file contains a single operation with the Business Comunications API.

To run these scripts you need to be signed up with Business Messages.

Documentation

The documentation for the Business Comunications API can be found here.

Prerequisite

You must have the following software installed on your machine:

Before you begin

Installation

Install the dependencies:

npm install

How to run the NodeJS scripts?

  1. Locate the file with the code snippet you want to execute.
  2. Replace all the values of the constants on top of the file that are set to EDIT_HERE.
  3. Make sure the path to your service account key is correct. The scripts use the path ./service_account_key.json.
  4. On your terminal, run node file-name-to-be-executed.js

Learn more

To learn more about setting up Business Messages and supporting chat from Search and Maps, see the documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published