Skip to content

Commit d614b68

Browse files
authored
Merge pull request #25842 from microsoftgraph/add-import-notes-to-create-client
Adding import/use/require notes to tabs in create-client.md
2 parents cc73fa4 + 84d40b7 commit d614b68

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

concepts/sdks/create-client.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,36 @@ The client ID is the app registration ID that is generated when you [register yo
2222

2323
:::code language="csharp" source="./snippets/dotnet/src/SdkSnippets/Snippets/CreateClients.cs" id="DeviceCodeSnippet":::
2424

25+
> Include `using` statements for `Azure.Identity` and `Microsoft.Graph` to run this code.
26+
2527
# [Go](#tab/go)
2628

2729
:::code language="go" source="./snippets/go/src/snippets/create_clients.go" id="DeviceCodeSnippet":::
2830

31+
> Include `"github.com/Azure/azure-sdk-for-go/sdk/azidentity"` and `graph "github.com/microsoftgraph/msgraph-sdk-go"` in your import block to run this code.
32+
2933
# [Java](#tab/java)
3034

3135
:::code language="java" source="./snippets/java/app/src/main/java/snippets/CreateClients.java" id="DeviceCodeSnippet":::
3236

37+
> Include `import` statements for `com.azure.identity.DeviceCodeCredential`, `com.azure.identity.DeviceCodeCredentialBuilder`, and `com.microsoft.graph.serviceclient.GraphServiceClient` to run this code.
38+
3339
# [PHP](#tab/php)
3440

3541
:::code language="php" source="./snippets/php/snippets/CreateClients.php" id="AuthorizationCodeSnippet":::
3642

43+
> Include `use` statements for `Microsoft\Graph\GraphRequestAdapter`, `Microsoft\Graph\GraphServiceClient`, and `Microsoft\Kiota\Abstractions\Authentication\BaseBearerTokenAuthenticationProvider` to run this code.
44+
3745
# [Python](#tab/python)
3846

3947
:::code language="python" source="./snippets/python/src/snippets/create_clients.py" id="DeviceCodeSnippet":::
4048

49+
> Include `import` statements for `DeviceCodeCredential` from `azure.identity` and `GraphServiceClient` from `msgraph.graph_service_client` to run this code.
50+
4151
# [TypeScript](#tab/typescript)
4252

4353
:::code language="typescript" source="./snippets/typescript/src/snippets/createClients.ts" id="DeviceCodeSnippet":::
4454

55+
> Include `import` statements for `DeviceCodeCredential` from `@azure/identity`, `Client` from `@microsoft/microsoft-graph-client`, and `TokenCredentialAuthenticationProvider` from `@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials` to run this code.
56+
4557
---

0 commit comments

Comments
 (0)