These code snippets demonstrate how to perform operations with the Business Messages API using curl from the command line.
This project contains multiple examples. Each file contains a single operation with the Business Messages API.
To run the curl commands you need to be signed up with Business Messages.
The documentation for the Business Messages API can be found here.
You must have the following software installed on your machine:
- Register with Business Messages.
- Once registered, follow the instructions to enable the APIs for your project.
- Locate the file with the command you want to execute.
- Replace all the placeholder strings that start with
__
, for example:__CONVERSATION_ID__
. - Make sure the path to your service account key is correct.
- Copy the content of the file to your terminal and execute the command.
To learn more about setting up Business Messages and supporting chat from Search and Maps, see the documentation.