Události
Vytváření inteligentních aplikací
17. 3. 23 - 21. 3. 23
Připojte se k řadě meetupů a vytvořte škálovatelná řešení AI založená na skutečných případech použití s kolegy vývojáři a odborníky.
ZaregistrovatTento prohlížeč se už nepodporuje.
Upgradujte na Microsoft Edge, abyste mohli využívat nejnovější funkce, aktualizace zabezpečení a technickou podporu.
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.
SDKs are available in the following languages:
The Microsoft Graph .NET SDK is included in the following NuGet packages:
v1.0
endpoint with the fluent API. Microsoft.Graph has a dependency on Microsoft.Graph.Core.beta
endpoint with the fluent API. Microsoft.Graph.Beta has a dependency on Microsoft.Graph.Core.To install the Microsoft.Graph packages into your project, you can use the dotnet CLI, the Package Manager UI in Visual Studio or the Package Manager Console in Visual Studio. The following commands install the Microsoft.Graph and Microsoft.Graph.Core libraries. Microsoft.Graph.Core is installed as a dependency of Microsoft.Graph.
dotnet add package Microsoft.Graph
Install-Package Microsoft.Graph
The Microsoft Graph Go SDK is included in the following packages:
v1.0
endpoint with the fluent API.beta
endpoint with the fluent API.go get github.com/microsoftgraph/msgraph-sdk-go
go get github.com/Azure/azure-sdk-for-go/sdk/azidentity
The Microsoft Graph Java SDK is included in the following packages:
v1.0
endpoint with the fluent API.beta
endpoint with the fluent API.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:
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:
<dependency>
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph</artifactId>
<version>[6.0,)</version>
</dependency>
<dependency>
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph-beta</artifactId>
<version>[6.0,)</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>[1.11,)</version>
</dependency>
The Microsoft Graph JavaScript SDK is included in the following packages:
Use npm to install the Microsoft Graph JavaScript SDK:
npm install @microsoft/microsoft-graph-client --save
npm install @microsoft/microsoft-graph-types --save-dev
The Microsoft Graph PHP SDK is available from packagist.org and can be installed in the following ways:
Use composer to install the Microsoft Graph PHP SDK manually:
composer require microsoft/microsoft-graph
Use composer.json to install the Microsoft Graph PHP SDK:
{
"require": {
"microsoft/microsoft-graph": "^2.0.0"
}
}
All the modules are published on PowerShell Gallery. To install:
Install-Module Microsoft.Graph
If you're upgrading from the preview modules, run Install-Module
with AllowClobber
and Force
parameters to avoid command name conflicts:
Install-Module Microsoft.Graph -AllowClobber -Force
The Microsoft Graph Python SDK is available on PyPI.
pip install msgraph-sdk
Události
Vytváření inteligentních aplikací
17. 3. 23 - 21. 3. 23
Připojte se k řadě meetupů a vytvořte škálovatelná řešení AI založená na skutečných případech použití s kolegy vývojáři a odborníky.
ZaregistrovatŠkolení