microsoftgraph / microsoft-graph-devx-api

Services API for Graph Explorer
MIT License
87 stars 35 forks source link

Items.Thumbnails.Content: {size} parameter should be used #1486

Open f1nzer opened 2 years ago

f1nzer commented 2 years ago

The code snippet has a typo in Thumbnails parameters: the second parameter should be {size} instead of {thumbnailSet-id}.

Snippet's source code: https://github.com/microsoftgraph/microsoft-graph-docs/blob/main/api-reference/v1.0/includes/snippets/csharp/get-thumbnail-content-csharp-snippets.md

GraphServiceClient graphClient = new GraphServiceClient( authProvider );

var content = await graphClient.Me.Drive.Items["{driveItem-id}"].Thumbnails["{thumbnailSet-id}"]["{thumbnailSet-id}"].Content
    .Request()
    .GetAsync();

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

github-actions[bot] commented 2 years ago

This issue has been assigned to you, @JeremyKelley. You are listed as the author for the document associated with this issue. If this is not correct, please take the following actions.