{"id":16999696,"url":"https://github.com/alvi-khan/onedrive_api","last_synced_at":"2026-05-08T04:33:52.136Z","repository":{"id":215992481,"uuid":"740147603","full_name":"alvi-khan/onedrive_api","owner":"alvi-khan","description":"OneDrive API module for Flutter and Dart.","archived":false,"fork":false,"pushed_at":"2024-03-10T16:34:34.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T07:51:56.711Z","etag":null,"topics":["dart","microsoft-graph","onedrive"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/onedrive_api","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alvi-khan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-07T17:03:09.000Z","updated_at":"2024-12-01T01:07:57.000Z","dependencies_parsed_at":"2024-01-07T21:28:46.786Z","dependency_job_id":"f1f150f0-d820-4893-9bcf-8771c6533f55","html_url":"https://github.com/alvi-khan/onedrive_api","commit_stats":null,"previous_names":["alvi-khan/onedrive_api"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alvi-khan/onedrive_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvi-khan%2Fonedrive_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvi-khan%2Fonedrive_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvi-khan%2Fonedrive_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvi-khan%2Fonedrive_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alvi-khan","download_url":"https://codeload.github.com/alvi-khan/onedrive_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvi-khan%2Fonedrive_api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261392176,"owners_count":23151718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","microsoft-graph","onedrive"],"created_at":"2024-10-14T04:09:48.962Z","updated_at":"2026-05-08T04:33:47.106Z","avatar_url":"https://github.com/alvi-khan.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneDrive API\n\n[![pub package](https://img.shields.io/pub/v/onedrive_api?color=%230175C2\n)](https://pub.dev/packages/onedrive_api)\n\nOneDrive API allows easy interaction with the [files APIs of Microsoft Graph](https://learn.microsoft.com/en-us/graph/api/resources/onedrive). It follows the [OneDrive API module for Node.js](https://www.npmjs.com/package/onedrive-api).\n\nThis library is exclusively for the files APIs. For other Microsoft APIs, check out [microsoft_graph_api](https://pub.dev/packages/microsoft_graph_api).\n\n\u003e Note: Using this library requires an [access token](https://learn.microsoft.com/en-us/graph/auth-v2-user).\n\n## Features\n### Implemented\n- [x] Create Folders\n- [x] Delete Files and Folders\n### Planned\n- [ ] Create Shareable Links\n- [ ] Download Files and Folders\n- [ ] Fetch Metadata\n- [ ] List Files and Folders\n- [ ] Retrieve File Preview URLs\n- [ ] Retrieve File Thumbnails\n- [ ] Update Metadata\n- [ ] Upload Files\n\n## Usage\n\n### Creating a Folder\n\n```dart\nimport 'package:onedrive_api/onedrive_api.dart';\n\nvoid main() async {\n  FolderParams folderParams = FolderParams();\n  folderParams.accessToken = \"ACCESS_TOKEN\";\n  folderParams.name = \"Test Folder\";\n\n  Response response = await createFolder(folderParams);\n  if (response.statusCode != 201) {\n    throw Exception(response.errorMsg);\n  } else {\n    print(\"Item Created: ${response.itemId}\");\n  }\n}\n\n```\n### Delete an Item\n```dart\nimport 'package:onedrive_api/onedrive_api.dart';\n\nvoid main() async {\n  ItemParams itemParams = ItemParams();\n  itemParams.accessToken = \"ACCESS_TOKEN\";\n  itemParams.itemId = \"ITEM_ID\";\n\n  Response response = await delete(itemParams);\n  if (response.statusCode != 204) {\n    throw Exception(response.errorMsg);\n  } else {\n    print(\"Item Deleted: ${itemParams.itemId}\");\n  }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvi-khan%2Fonedrive_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvi-khan%2Fonedrive_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvi-khan%2Fonedrive_api/lists"}