You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/v1.0/api/driveitem-list-thumbnails.md
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,11 @@ This is currently only supported on OneDrive Personal.
68
68
69
69
If successful, this method returns a `200 OK` response code and collection of [ThumbnailSet](../resources/thumbnailset.md) objects in the response body.
70
70
71
-
## Example
71
+
## Examples
72
+
73
+
### Example 1: Retrieve available thumbnails for an item in the current user's OneDrive
74
+
75
+
#### Request
72
76
73
77
The following example shows a request which retrieves available thumbnails for an item in the current user's OneDrive.
74
78
@@ -117,7 +121,7 @@ Any item in a drive can have zero or more thumbnails.
117
121
For example, `/thumbnails?select=medium` retrieves only the medium sized thumbnails.
Thumbnail URLs are cache-safe. The URL will change, if the item changes in a way that requires a new thumbnail to be generated.
261
266
262
267
263
-
## Getting thumbnails while listing DriveItems
268
+
### Example 4: Getting thumbnails while listing DriveItems
264
269
265
270
If you are retrieving a list of DriveItem resources to display, you can use the _$expand_ query string parameter to also include the thumbnails for those resources.
266
271
This enables your app to retrieve thumbnails and items in a single request, instead of issuing many requests.
267
272
268
-
###HTTP request
273
+
#### Request
269
274
270
275
271
276
# [HTTP](#tab/http)
@@ -305,7 +310,7 @@ GET /me/drive/items/{item-id}/children?$expand=thumbnails
305
310
306
311
---
307
312
308
-
### Response
313
+
####Response
309
314
310
315
The service responses with the list of DriveItems and their thumbnails.
0 commit comments