{"id":19700512,"url":"https://github.com/darrarski/swift-dropbox-client","last_synced_at":"2025-08-05T09:22:45.050Z","repository":{"id":179293775,"uuid":"663217833","full_name":"darrarski/swift-dropbox-client","owner":"darrarski","description":"Basic Dropbox HTTP API client that does not depend on Dropbox's SDK","archived":false,"fork":false,"pushed_at":"2023-07-17T20:32:41.000Z","size":79,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T15:06:36.845Z","etag":null,"topics":["cloud-file-system","cloud-files","dropbox","dropbox-api","dropbox-client","oauth2","swift","swift-package-manager"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/darrarski.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-06T20:20:09.000Z","updated_at":"2024-06-16T13:53:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4aef1e9-59e0-469d-97d0-f54ffa4d9402","html_url":"https://github.com/darrarski/swift-dropbox-client","commit_stats":null,"previous_names":["darrarski/swift-dropbox-client"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/darrarski/swift-dropbox-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrarski%2Fswift-dropbox-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrarski%2Fswift-dropbox-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrarski%2Fswift-dropbox-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrarski%2Fswift-dropbox-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darrarski","download_url":"https://codeload.github.com/darrarski/swift-dropbox-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrarski%2Fswift-dropbox-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268868038,"owners_count":24320493,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cloud-file-system","cloud-files","dropbox","dropbox-api","dropbox-client","oauth2","swift","swift-package-manager"],"created_at":"2024-11-11T21:06:14.802Z","updated_at":"2025-08-05T09:22:45.042Z","avatar_url":"https://github.com/darrarski.png","language":"Swift","funding_links":["https://www.buymeacoffee.com/darrarski"],"categories":[],"sub_categories":[],"readme":"# Swift Dropbox Client\n\n![Swift v5.8](https://img.shields.io/badge/swift-v5.8-orange.svg)\n![platforms iOS, macOS](https://img.shields.io/badge/platforms-iOS,_macOS-blue.svg)\n\nBasic Dropbox HTTP API client that does not depend on Dropbox's SDK. No external dependencies.\n\n- Authorize access\n- List folder\n- Get file metadata\n- Upload file\n- Download file\n- Delete file\n\n## 📖 Usage\n\nUse [Swift Package Manager](https://swift.org/package-manager/) to add the `DropboxClient` library as a dependency to your project. \n\nRegister your application in [Dropbox App Console](https://www.dropbox.com/developers/apps).\n\nConfigure your app so that it can handle sign-in redirects. For an iOS app, you can do it by adding or modifying `CFBundleURLTypes` in `Info.plist`:\n\n```xml\n\u003ckey\u003eCFBundleURLTypes\u003c/key\u003e\n\u003carray\u003e\n  \u003cdict\u003e\n    \u003ckey\u003eCFBundleTypeRole\u003c/key\u003e\n    \u003cstring\u003eEditor\u003c/string\u003e\n    \u003ckey\u003eCFBundleURLName\u003c/key\u003e\n    \u003cstring\u003e\u003c/string\u003e\n    \u003ckey\u003eCFBundleURLSchemes\u003c/key\u003e\n    \u003carray\u003e\n      \u003cstring\u003edb-abcd1234\u003c/string\u003e\n    \u003c/array\u003e\n  \u003c/dict\u003e\n\u003c/array\u003e\n```\n\nCreate the client:\n\n```swift\nimport DropboxClient\n\nlet client = DropboxClient.Client.live(\n  config: .init(\n    appKey: \"abcd1234\",\n    redirectURI: \"db-abcd1234://my-app\"\n  )\n)\n```\n\nMake sure the `redirectURI` contains the scheme defined earlier.\n\nThe package provides a basic implementation for storing vulnerable data securely in the keychain. Optionally, you can provide your own, custom implementation of a keychain, instead of using the default one.\n\n```swift\nimport DropboxClient\n\nlet keychain = DropboxClient.Keychain(\n  loadCredentials: { () async -\u003e DropboxClient.Credentials? in\n    // load from secure storage and return\n  },\n  saveCredentials: { (DropboxClient.Credentials) async -\u003e Void in\n    // save in secure storage\n  },\n  deleteCredentials: { () async -\u003e Void in\n    // delete from secure storage\n  }\n)\nlet client = DropboxClient.Client.live(\n  config: .init(...),\n  keychain: keychain\n)\n``` \n\n### ▶️ Example\n\nThis repository contains an [example iOS application](Example/DropboxClientExampleApp) built with SwiftUI.\n\n- Open `DropboxClient.xcworkspace` in Xcode.\n- Example source code is contained in the `Example` Xcode project.\n- Run the app using the `DropboxClientExampleApp` build scheme.\n- The \"Example\" tab provides UI that uses `DropboxClient` library.\n- The \"Console\" tab provides UI for browsing application logs and HTTP requests.\n\nThe example app uses [Dependencies](https://github.com/pointfreeco/swift-dependencies) to manage its own internal dependencies. For more information about the `Dependencies` library check out [official documentation](https://pointfreeco.github.io/swift-dependencies/main/documentation/dependencies).\n\n## 🏛 Project structure\n\n```\nDropboxClient (Xcode Workspace)\n ├─ swift-dropbox-client (Swift Package)\n |   └─ DropboxClient (Library)\n └─ Example (Xcode Project)\n     └─ DropboxClientExampleApp (iOS Application)\n```\n\n## 🛠 Develop\n\n- Use Xcode (version ≥ 14.3.1).\n- Clone the repository or create a fork \u0026 clone it.\n- Open `DropboxClient.xcworkspace` in Xcode.\n- Use the `DropboxClient` scheme for building the library and running unit tests.\n- If you want to contribute, create a pull request containing your changes or bug fixes. Make sure to include tests for new/updated code.\n\n## ☕️ Do you like the project?\n\n\u003ca href=\"https://www.buymeacoffee.com/darrarski\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"60\" width=\"217\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n\n## 📄 License\n\nCopyright © 2023 Dariusz Rybicki Darrarski\n\nLicense: [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrarski%2Fswift-dropbox-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarrarski%2Fswift-dropbox-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrarski%2Fswift-dropbox-client/lists"}