{"id":22820232,"url":"https://github.com/kizzycode/onedrive-swift","last_synced_at":"2025-03-30T23:16:43.800Z","repository":{"id":66117971,"uuid":"293611656","full_name":"KizzyCode/onedrive-swift","owner":"KizzyCode","description":"A package that implements basic OneDrive file operations","archived":false,"fork":false,"pushed_at":"2020-09-07T19:26:01.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T04:44:19.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KizzyCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE BSD 2-CLAUSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-07T19:11:21.000Z","updated_at":"2020-09-07T19:26:03.000Z","dependencies_parsed_at":"2023-02-20T19:45:37.766Z","dependency_job_id":null,"html_url":"https://github.com/KizzyCode/onedrive-swift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2Fonedrive-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2Fonedrive-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2Fonedrive-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2Fonedrive-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KizzyCode","download_url":"https://codeload.github.com/KizzyCode/onedrive-swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390858,"owners_count":20769478,"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":[],"created_at":"2024-12-12T15:17:18.275Z","updated_at":"2025-03-30T23:16:43.794Z","avatar_url":"https://github.com/KizzyCode.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneDrive\n\nA package that implements basic OneDrive file operations.\n\n\n## Example: Creating a file\n```swift\n// A callback to open a webview\nlet webview = { (url: String, code: String) in\n    // Open a browser window at `url` and display the code so that the user can enter it\n}\n\n// Perform a login to get a token and create the OneDrive instance\nlet token = AsyncResult\u003cToken, OneDriveError\u003e()\n_ = try Login(webview: webview, completion: token.set)\nlet oneDrive = OneDrive(token: try token.await())\n\n// Create a file \"/TestFile\" with the contents \"Testolope\"\nlet data = \"Testolope\".data(using: .utf8)!, result = AsyncResult\u003cVoid, OneDriveError\u003e()\noneDrive.create(file: \"/TestFile\", data: data, completion: result.set)\ntry result.await()\n```\n\nTip: See `Tests/OneDriveTests/OneDriveTests.swift` for more inspiration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkizzycode%2Fonedrive-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkizzycode%2Fonedrive-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkizzycode%2Fonedrive-swift/lists"}