sample
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 flowpipeClone:
git clone https://github.com/turbot/flowpipe-samples.gitcd messaging/send_teams_messageflowpipe mod installConnections
By default, the following environment variables will be used for authentication:
TEAMS_ACCESS_TOKEN
You can also create connection resources in configuration files:
vi ~/.flowpipe/config/teams.fpcconnection "teams" "default" { access_token = "<access_token>"}For more information on connections in Flowpipe, please see Managing Connections.
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"