{"repo":"microsoftgraph/msgraph-sdk-go","free":true,"listed":false,"github":"https://github.com/microsoftgraph/msgraph-sdk-go","clone":"git clone https://github.com/microsoftgraph/msgraph-sdk-go.git","description":"Microsoft Graph SDK for Go","language":"Go","stars":332,"topics":["go","sdk","microsoft-graph","microsoft-graph-sdk","devxeng"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Microsoft Graph SDK for Go Get started with the Microsoft Graph SDK for Go by integrating the Microsoft Graph API into your Go application! Note: this SDK allows you to build applications using the v1.0 of Microsoft Graph. If you want to try the latest Microsoft Graph APIs under beta, use our beta SDK instead. 1. Installation 2. Getting started 2.1 Register your application Register your application by following the steps at Register your app with the Microsoft Identity Platform. 2.2 Create an AuthenticationProvider object An instance of the GraphRequestAdapter class handles building client. To create a new instance of this class, you need to provide an instance of AuthenticationProvider , which can authenticate requests to Microsoft Graph. For an example of how to get an authentication provider, see choose a Microsoft Graph authentication provider. Note: we are working to add the getting started information for Go to our public documentation, in the meantime the following sample should help you getting started. This example uses the DeviceCodeCredential class, which uses the device code flow to authenticate the user and acquire an access token. This authentication method is not enabled on app registrations by default. In order to use this example, you must enable public client flows on the app registation in the Azure portal by selecting Authentication under Manage , and setting the Allow public client flows toggle to Yes . 2.3 Get a Graph Service Client and Adapter object Y","default_branch":null,"files":null,"tree":[],"storefront":"/r/microsoftgraph","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/microsoftgraph/msgraph-sdk-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}