{"id":20054325,"url":"https://github.com/onedrive/samples","last_synced_at":"2026-03-06T08:33:09.657Z","repository":{"id":40586010,"uuid":"491126179","full_name":"OneDrive/samples","owner":"OneDrive","description":"Contains samples, scenarios, and guidance for integrating with OneDrive and SharePoint drives, drive items, and files.","archived":false,"fork":false,"pushed_at":"2024-04-03T23:23:03.000Z","size":2886,"stargazers_count":64,"open_issues_count":27,"forks_count":61,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-05T13:41:49.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OneDrive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-11T13:36:21.000Z","updated_at":"2025-04-26T11:10:54.000Z","dependencies_parsed_at":"2024-11-13T12:40:14.816Z","dependency_job_id":"87c2b002-df05-4ce5-acb6-b99c9d619022","html_url":"https://github.com/OneDrive/samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OneDrive/samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneDrive%2Fsamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneDrive%2Fsamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneDrive%2Fsamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneDrive%2Fsamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneDrive","download_url":"https://codeload.github.com/OneDrive/samples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneDrive%2Fsamples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30167963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-13T12:39:48.948Z","updated_at":"2026-03-06T08:33:09.618Z","avatar_url":"https://github.com/OneDrive.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneDrive : Samples and Scenarios\n\nThis repository contains Microsoft authored sample code to help you integrate with OneDrive and SharePoint files, drives, and drive items.\n\n\u003e You can browse Microsoft and community created samples across many repositories through the [unified sample gallery](https://adoption.microsoft.com/sample-solution-gallery).\n\n## Samples\n\nSamples demonstrate specific integration techniques to connect with OneDrive or SharePoint. Please see the readme files for each sample for full details.\n\n|Name|Description|\n|---|---|\n|[file-handler](https://aka.ms/onedrive/samples/file-handler)|Shows how to build a OneDrive/SharePoint file handler. This allows you to provide custom open, edit, and create actions for various file types.|\n|[file-picker](https://aka.ms/onedrive/samples/file-picking)|demonstrating how to use the latest service provided file picker for M365 allowing your users to easily and consistently open files stored within OneDrive and SharePoint.|\n\n## Scenarios\n\n|Name|Description|\n|---|---|\n|[list-view-service-integration](https://github.com/OneDrive/samples/tree/master/scenarios/list-view-service-integration)|Demonstration of securely calling a remote AAD secured service from an SPFx list view command. Includes full setup instructions.|\n|[onedrive-files-hooks](https://aka.ms/OneDrive/samples/files-hooks)|This sample application shows how an application (desktop application) can connect with either OneDrive for Business (ODB) or the OneDrive consumer (ODC) service.|\n|[throttling-ratelimit-handling](scenarios/throttling-ratelimit-handling/) | Sample showing how to use the RateLimit response headers to avoid getting throttled. |\n\n## Helpful Links\n\nThese topics and links are often helpful when building applications accessing files stored in OneDrive or SharePoint.\n\n\u003cdetails\u003e\n  \u003csummary\u003eGetting Started\u003c/summary\u003e\n\n  ### M365 Development\n\n  - [Microsoft 365 Development](https://developer.microsoft.com)\n  - [Microsoft Partner Network](https://partner.microsoft.com)\n  - [App Source](https://appsource.microsoft.com)\n\n  ### SharePoint\n  \n  - [Overview](https://www.microsoft.com/microsoft-365/sharepoint/collaboration/)\n  - [SharePoint Development](https://developer.microsoft.com/sharepoint)\n  - [SharePoint Framework](https://aka.ms/spfx)\n\n  ### Teams\n\n  - [Overview](https://www.microsoft.com/microsoft-teams/group-chat-software)\n  - [Teams development](https://developer.microsoft.com/microsoft-teams)\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eViva Connections Development\u003c/summary\u003e\n  \n  - [Overview](https://docs.microsoft.com/SharePoint/viva-connections)\n  - [Setup Home Site](https://docs.microsoft.com/sharepoint/home-site)\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eSharePoint Development\u003c/summary\u003e\n  \n  - [SharePoint Framework](https://aka.ms/spfx)\n  - [Publish SPFx Apps to AppSource](https://docs.microsoft.com/sharepoint/dev/spfx/publish-to-marketplace-overview) \n  - [Site Collection App Catalog](https://docs.microsoft.com/sharepoint/dev/general-development/site-collection-app-catalog)\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eMicrosoft Teams Development\u003c/summary\u003e\n  \n  - [Building a Teams tab with SharePoint Framework](https://docs.microsoft.com/sharepoint/dev/spfx/web-parts/get-started/using-web-part-as-ms-teams-tab)\n  - [Update Teams Manifest for SharePoint]()\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eOne Drive \u0026 Graph Files\u003c/summary\u003e\n  \n  - [Microsoft Graph Overview](https://docs.microsoft.com/graph/use-the-api)\n  - [Drives](https://docs.microsoft.com/graph/api/resources/drive?view=graph-rest-1.0)\n  - [Drive Items](https://docs.microsoft.com/graph/api/resources/driveitem?view=graph-rest-1.0)\n  - [Sharing URL Trick](https://docs.microsoft.com/graph/api/shares-get?view=graph-rest-1.0\u0026tabs=http#encoding-sharing-urls)\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eFile Handlers\u003c/summary\u003e\n  \n  - [Overview](https://docs.microsoft.com/onedrive/developer/file-handlers)\n  - [Clearing Cached Manifets](https://docs.microsoft.com/onedrive/developer/file-handlers/reset-cache)\n  - [Sample](https://github.com/pnp/contoso/tree/main/filehandler)\n\n\u003c/details\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eAuthentication\u003c/summary\u003e\n  \n  - [AAD: On Behalf of Authentication](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow)\n\n\u003c/details\u003e\n\n## Trademarks\n\nThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft \ntrademarks or logos is subject to and must follow \n[Microsoft's Trademark \u0026 Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general).\nUse of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.\nAny use of third-party trademarks or logos are subject to those third-party's policies.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonedrive%2Fsamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonedrive%2Fsamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonedrive%2Fsamples/lists"}