Code samples for the Microsoft Teams developer platform
Here you will find a list of code samples that demonstrate various capabilities of the Microsoft Teams development platform and how to build apps to leverage those features.
To download our samples from GitHub:
- Select one of the projects listed below and open the project in GitHub.
- Choose the Clone or download button and copy the URL
- Open a command prompt in the parent directory into which you want to install the sample project
git clone <pasted url>
For .NET/C# samples
Each of our .NET samples includes a Visual Studio solution file that can build the solution fully, including restoring the NuGet packages.
For Node.js samples
We provide a packages.json file that lists all required packages for a sample. Simply run
npm install from the command line in your Node.js project directory to install the required packages. You're now ready to open the project in Visual Studio Code and start experimenting.
For other samples
As always, the project's README file should have more information on specific needs for specific samples.
|Hello World in Microsoft Teams with Node.js||A sample teams app in
|Hello World in Microsoft Teams with C#.NET||A sample teams app in
|Complete sample in Node.js||This sample shows how to use all the features of the Microsoft Teams platform|
|Complete sample in C#/.NET||This project is meant to help a Teams developers in two ways. First, it shows many examples of how an app can integrate into Teams. Second, it gives a set of patterns, templates, and tools that can be used as a starting point for creating a larger, scalable, more enterprise level app to work within Teams.|
|Line of Business apps in C#/.NET||This repository contains multiple example Line of Business apps that can be used for either inspiration or as templates to build on top of.|
|Sample bot for C#/.NET||This sample bot shows how to use the [Teams extensions for the Bot Builder SDK] (~/get-started/code.md#microsoft-teams-extensions-for-the-bot-builder-sdk) in
|Sample bot for Node.js||This sample bot shows how to use the [Teams extensions for the Bot Builder SDK] (~/get-started/code.md#microsoft-teams-extensions-for-the-bot-builder-sdk) in
|Outgoing Webhook for C#/.NET||Illustrates how to create an Outgoing Webhook for Microsoft Teams in C#/.NET.|
|Outgoing Webhook for Node.js||Illustrates how to create a simple Outgoing Webhook for Microsoft Teams in ~50 lines of Node.js code.|
|Sample connector for Node.js||This sample, written in Node.js, showcases how to build a connector for Microsoft Teams using GitHub as an example to generate connector notifications.|
|Sample connector for C#/.NET||This sample, written in C#, showcases how to build a connector for Microsoft Teams using a sample task list app as an example to generate connector notifications.|
|Microsoft Graph API Samples||These samples demonstrate using Microsoft Graph API calls to perform tasks such as querying teams and channels from a web service running outside Microsoft Teams.|
|Yeoman generator||Generates a Microsoft Teams app skeleton with tabs, bots, and more based on Node.js and TypeScript. Optionally it adds support for hosting using Express.|
|"To-do" list sample tab app||This Node.js sample shows how easy it is to convert an existing web app into a tab.|
|Orky||You can use Orky to register your own local bot in Microsoft Teams and execute scripts from ANYWHERE!|
|Build 2017 Weather||Source code for the //build 2017 session to add a weather tab to the skeleton app generated earlier in the session|
Send feedback about: