Skip to content

MTCMarkFranco/msteams-samples-outgoing-webhook-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

page_type products languages extensions
sample
office-365
javascript
contentType createdDate
samples
10/27/2020 6:03:13 PM

Microsoft Teams outgoing webhook sample

This project is an implementation of a very simple Outgoing Webhook for Microsoft Teams. All it does is verify that what's sending messages matches the Outgoing Webhook that was created in Teams, and it echoes back whatever is sent to it.

Steps to run locally

Prerequisites

  • Install Git for windows: https://git-for-windows.github.io/

  • Clone this repo:

    git clone https://github.com/MTCMarkFranco/msteams-samples-outgoing-webhook-nodejs.git
  • Install Node: https://nodejs.org/en/download/

  • Create and install your own Certificate files required for SSL communication with Teams, located within the Certs folder

  • Paste the security token generated by Teams as the value of TeamsSharedSecret in .ENV.

  • In the directory in which you installed this project, type npm start

  • In Microsoft Teams, in any channel in the team in which you created the Outgoing Webhook, you can type @<botname> hello (or anything else you like) and it will echo back its name and what you typed.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published