Skip to content

Commit a03c9a8

Browse files
committed
Added import/use/using statements to code examples.
1 parent 32a4242 commit a03c9a8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

concepts/sdks/create-client.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,35 @@ 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

41-
Import `DeviceDodeCredential` from `azure.identity`, and import `GraphServiceClient` from `msgraph.graph_service_client` to run this code.
49+
Include `import` statements for `DeviceDodeCredential` from `azure.identity`, and import `GraphServiceClient` from `msgraph.graph_service_client` to run this code.
4250

4351
# [TypeScript](#tab/typescript)
4452

4553
:::code language="typescript" source="./snippets/typescript/src/snippets/createClients.ts" id="DeviceCodeSnippet":::
4654

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.
4756
---

0 commit comments

Comments
 (0)