Microsoft Graph SDKs can be included in your projects via GitHub and popular platform package managers. This article describes how to install a Microsoft Graph SDK into your project.
The Microsoft Graph .NET SDK is included in the following NuGet packages:
Microsoft.Graph: Contains the models and request builders for accessing the v1.0 endpoint with the fluent API. Microsoft.Graph has a dependency on Microsoft.Graph.Core.
Microsoft.Graph.Beta: Contains the models and request builders for accessing the beta endpoint with the fluent API. Microsoft.Graph.Beta has a dependency on Microsoft.Graph.Core.
To install the Microsoft Graph Java SDK, you can use one of these two options:
Use Gradle to install the Microsoft Graph Java SDK. Add the repository and a compile dependency for microsoft-graph to your project's build.gradle:
Gradle
repository {
mavenCentral()
}
dependency {
// Include the sdk as a dependency
implementation 'com.microsoft.graph:microsoft-graph:6.+'// Beta
implementation 'com.microsoft.graph:microsoft-graph-beta:6.+'// Include Azure identity for authentication
implementation 'com.azure:azure-identity:1.+'
}
Use Maven to install the Microsoft Graph Java SDK. Add the dependency in the dependencies element in pom.xml:
Liity tapaamissarjaan ja luo skaalattavia tekoälyratkaisuja, jotka perustuvat reaalimaailman käyttötapauksiin muiden kehittäjien ja asiantuntijoiden kanssa.