Coder Social home page Coder Social logo

videepthmsft / csharp-teams-sample-graph Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoftgraph/csharp-teams-sample-graph

0.0 2.0 0.0 470 KB

Sample apps (C# and node) for accessing Microsoft Teams data via the Microsoft Graph

License: Creative Commons Attribution 4.0 International

C# 86.05% CSS 1.13% ASP 0.06% JavaScript 10.47% HTML 2.28%

csharp-teams-sample-graph's Introduction

Microsoft Teams Graph API Samples

Thank you for your interest in the Microsoft Teams developer platform. This repo contains sample apps that use the Microsoft Teams APIs in Microsoft Graph.

Sample highlights

This sample shows how you can use the new beta Microsoft Teams Graph APIs to:

  • Query all teams

  • Query channels for a team

  • Send a message to a channel

  • Node

  • C#

For more information on developing apps for Microsoft Teams, please review the Microsoft Teams developer documentation.**

Prerequisites

O365 Account with Admin privileges

As the current Microsoft Teams Graph APIs are only accessible by a tenant admin, to run the app, you'll need to sign in with an account with admin privileges. Note that in most companies, you might not have these rights, nor the ability to grant yourself these rights, therefore you might benefit from a developer account through our Office 365 Developer program.

Registered app

You'll need to register an app through the following process:

  1. Sign into the App Registration Portal using your personal, work or school account.
  2. Choose 'Add an app'.
  3. Enter a name for the app, and choose 'Create application'.
  4. The registration page displays, listing the properties of your app.
    • Copy the Application Id. This is the unique identifier for your app.
  5. Under 'Application Secrets', choose 'Generate New Password'.
    • Copy the password from the 'New password generated' dialog.
  6. Under 'Platforms', choose 'Add platform'.
  7. Choose 'Web'.
  8. Make sure 'Allow Implicit Flow' check box is selected, and enter 'Redirect URI' e.g., http://localhost:55065/. See appropriate sample for more information on the specific port.
    • The 'Allow Implicit Flow' option enables the hybrid flow. During authentication, this enables the app to receive both sign-in info (the id_token) and artifacts (in this case, an authorization code) that the app can use to obtain an access token.
  9. Under 'Microsoft Graph Permissions', Add 'Group.ReadWrite.All' and 'User.ReadWrite.All' as Delegated and Application Permissions.
  10. Choose Save.

See the individual project readmes for more information.

Feedback

We welcome your feedback! Here's how to send us yours.

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Contributing

Please read Contributing for details on the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the License file for details.

Copyright

Copyright (c) 2017 Microsoft Corporation. All rights reserved.

csharp-teams-sample-graph's People

Contributors

richardtaylorrt avatar nkramer avatar richmoemsft avatar sunilk-iitkgp avatar microsoftopensource avatar davidchesnut avatar msftgits avatar o365devx avatar

Watchers

James Cloos avatar VishnuMSFT avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.