Created
July 17, 2023 05:55
-
-
Save FlameWolf/33aac86449fcf9f8e9d80d251d1665d9 to your computer and use it in GitHub Desktop.
OneDrive API Response Format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@content.downloadUrl": "https://public.dm.files.1drv.com/[200+ characters long random string]", | |
"createdBy": { | |
"application": { | |
"displayName": "OneDrive", | |
"id": "[file_id]" | |
}, | |
"user": { | |
"displayName": "[user_display_name]", | |
"id": "[user_id]" | |
} | |
}, | |
"createdDateTime": "2023-01-08T11:49:14.087Z", | |
"cTag": "[ctag]", | |
"eTag": "[etag]", | |
"id": "[user_id]![number]", | |
"lastModifiedBy": { | |
"application": { | |
"displayName": "OneDrive", | |
"id": "[file_id]" | |
}, | |
"user": { | |
"displayName": "[user_display_name]", | |
"id": "[user_id]" | |
} | |
}, | |
"lastModifiedDateTime": "2023-01-08T11:49:22.4Z", | |
"name": "[file_name]", | |
"parentReference": { | |
"driveId": "[user_id]", | |
"driveType": "personal", | |
"id": "[user_id]![number]", | |
"name": "[parent_folder_name]a", | |
"path": "/drive/root:/[file_path]" | |
}, | |
"size": 12827547, | |
"webDavUrl": "https://d.docs.live.net/[user_id]/[file_path]", | |
"webUrl": "https://1drv.ms/b/[shortened_ref]", | |
"pathFromRoot": "[file_path]", | |
"file": { | |
"hashes": { | |
"quickXorHash": "[hash]", | |
"sha1Hash": "[hash]", | |
"sha256Hash": "[hash]" | |
}, | |
"mimeType": "[mime_type]" | |
}, | |
"fileSystemInfo": { | |
"createdDateTime": "[date]", | |
"lastModifiedDateTime": "[date]" | |
}, | |
"reactions": { | |
"commentCount": 0 | |
}, | |
"thumbnails@odata.context": "https://api.onedrive.com/v1.0/$metadata#drives('[user_id]')/items('[user_id]%21649')/children('[user_id]%21962')/thumbnails", | |
"thumbnails": [ | |
{ | |
"id": "0", | |
"large": { | |
"height": 800, | |
"url": "[url]", | |
"width": 800 | |
}, | |
"medium": { | |
"height": 176, | |
"url": "[url]", | |
"width": 176 | |
}, | |
"small": { | |
"height": 96, | |
"url": "[url]", | |
"width": 96 | |
} | |
} | |
], | |
"lenses@odata.context": "https://api.onedrive.com/v1.0/$metadata#drives('[user_id]')/items('[user_id]%21649')/children('[user_id]%21962')/lenses", | |
"lenses": [], | |
"tags@odata.context": "https://api.onedrive.com/v1.0/$metadata#drives('[user_id]')/items('[user_id]%21649')/children('[user_id]%21962')/tags", | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment