samples
turbot/flowpipe-samples/send-teams-message
Get Involved
Version
License
Send Teams Message
Send a new chat message in the specified channel.
Installation
Download and install Flowpipe (https://flowpipe.io/downloads). Or use Brew:
brew tap turbot/tapbrew install flowpipe
Clone:
git clone https://github.com/turbot/flowpipe-samples.gitcd messaging/send_teams_message
flowpipe mod install
Credentials
By default, the following environment variables will be used for authentication:
TEAMS_ACCESS_TOKEN
You can also create credential
resources in configuration files:
vi ~/.flowpipe/config/teams.fpc
credential "teams" "default" { access_token = "<access_token>"}
For more information on credentials in Flowpipe, please see Managing Credentials.
Usage
Run the pipeline and specify the teams_team_id
, teams_channel_id
and teams_message
pipeline arguments:
flowpipe pipeline run send_teams_message --arg teams_team_id=fake-team-id --arg teams_channel_id='19:fake@thread.tacv2' --arg teams_message="Hello from Flowpipe"