{"id":20119581,"url":"https://github.com/box/box-swift-sdk-gen","last_synced_at":"2025-08-05T23:28:22.014Z","repository":{"id":227860815,"uuid":"697316156","full_name":"box/box-swift-sdk-gen","owner":"box","description":"Repository for Box Swift autogenerated SDK","archived":false,"fork":false,"pushed_at":"2025-08-04T11:42:24.000Z","size":7851,"stargazers_count":9,"open_issues_count":4,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-08-04T15:44:51.025Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/box.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-09-27T13:36:05.000Z","updated_at":"2025-08-01T15:01:29.000Z","dependencies_parsed_at":"2025-05-06T14:35:51.771Z","dependency_job_id":"163c178b-1a2a-4714-a2f8-2199c1fc3d2a","html_url":"https://github.com/box/box-swift-sdk-gen","commit_stats":null,"previous_names":["box/box-swift-sdk-gen"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/box/box-swift-sdk-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbox-swift-sdk-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbox-swift-sdk-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbox-swift-sdk-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbox-swift-sdk-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/box","download_url":"https://codeload.github.com/box/box-swift-sdk-gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fbox-swift-sdk-gen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268738506,"owners_count":24299553,"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-04T02:00:09.867Z","response_time":79,"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":[],"created_at":"2024-11-13T19:16:11.035Z","updated_at":"2025-08-05T23:28:21.998Z","avatar_url":"https://github.com/box.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/box/sdks/blob/master/images/box-dev-logo.png\" alt= “box-dev-logo” width=\"30%\" height=\"50%\"\u003e\n\u003c/p\u003e\n\n# Box Swift SDK GENERATED\n\n[![Project Status](http://opensource.box.com/badges/active.svg)](http://opensource.box.com/badges)\n![build](https://github.com/box/box-swift-sdk-gen/actions/workflows/build_and_test.yml/badge.svg)\n[![Platforms](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_watchOS_visionOS_Linux-yellowgreen?style=flat-square)](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_watchOS_visionOS_Linux-yellowgreen?style=flat-square)\n[![Coverage](https://coveralls.io/repos/github/box/box-swift-sdk-gen/badge.svg?branch=main)](https://coveralls.io/github/box/box-swift-sdk-gen?branch=main)\n[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![CocoaPods compatible](https://img.shields.io/cocoapods/v/BoxSdkGen.svg)](https://cocoapods.org/pods/BoxSdkGen)\n\nWe are excited to introduce the latest generation (currently in Beta) of Box Swift SDK Gen, designed to elevate the developer experience and streamline your integration with the Box Content Cloud.\n\nWith this SDK, you’ll have access to:\n\n1. Full API Support: The new generation of Box SDKs empowers developers with complete coverage of the Box API ecosystem. You can now access all the latest features and functionalities offered by Box, allowing you to build even more sophisticated and feature-rich applications.\n2. Rapid API Updates: Say goodbye to waiting for new Box APIs to be incorporated into the SDK. With our new auto-generation development approach, we can now add new Box APIs to the SDK at a much faster pace (in a matter of days). This means you can leverage the most up-to-date features in your applications without delay.\n3. Embedded Documentation: We understand that easy access to information is crucial for developers. With our new approach, we have included comprehensive documentation for all objects and parameters directly in the source code of the SDK. This means you no longer need to look up this information on the developer portal, saving you time and streamlining your development process.\n4. Enhanced Convenience Methods: Our commitment to enhancing your development experience continues with the introduction of convenience methods. These methods cover various aspects such as chunk uploads, classification, and much more.\n5. Seamless Start: The new SDKs integrate essential functionalities like authentication, automatic retries with exponential backoff, exception handling, request cancellation, and type checking, enabling you to focus solely on your application's business logic.\n\nEmbrace the new generation of Box SDKs and unlock the full potential of the Box Content Cloud.\n\n# Table of contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Box Swift SDK GENERATED](#box-swift-sdk-generated)\n- [Table of contents](#table-of-contents)\n- [Installing](#installing)\n  - [Swift Package Manager](#swift-package-manager)\n  - [Carthage](#carthage)\n  - [CocoaPods](#cocoapods)\n- [Getting Started](#getting-started)\n- [Integration Tests](#integration-tests)\n  - [Running integration tests locally](#running-integration-tests-locally)\n    - [Create Platform Application](#create-custom-application)\n    - [Export configuration](#export-configuration)\n    - [Running tests](#running-tests)\n- [Questions, Bugs, and Feature Requests?](#questions-bugs-and-feature-requests)\n- [Copyright and License](#copyright-and-license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n# Installing\n\n## Swift Package Manager\n\nThe Swift Package Manager is a tool for managing the distribution of Swift code.\nIt’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.\n\nTo add a dependency to your Xcode project, click on Xcode project file on `Packages Dependencies` and click on the plus icon to add a package. Then enter the following repository url https://github.com/box/box-swift-sdk-gen.git and click next.\n\nAlternatively you can add a dependency to the dependencies value of your Package.swift.\n\nFor detailed instructions, please see the [official documentation for SPM](https://www.swift.org/package-manager/).\n\n## Carthage\n\nCarthage is a decentralized dependency manager which builds your dependencies and provides you with binary frameworks.\n\nTo add a dependency to `BoxSdkGen`, you need to add the following line to your `Cartfile` :\n\n```shell\ngit \"https://github.com/box/box-swift-sdk-gen.git\"\n```\n\nThen run:\n\n```shell\ncarthage bootstrap --use-xcframeworks\n```\n\nAnd finally drag the built `xcframework` from Carthage/Build into your project.\n\nFor more detailed instructions, please see the [official documentation for Carthage](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application).\n\n## CocoaPods\n\nCocoaPods is a dependency manager for Swift and Objective-C Cocoa projects.\nTo start using `BoxSdkGen` with CocoaPods, you need to add `BoxSdkGen` dependency to your `Podfile`:\n\n```shell\npod 'BoxSdkGen'\n```\n\nThen run the following command in your project directory:\n\n```shell\n$ pod install\n```\n\nNow open your [project].xcworkspace and build.\n\nFor more detailed instructions, please see the [official documentation for Cocoapods](https://guides.cocoapods.org/using/using-cocoapods.html).\n\n# Getting Started\n\nTo get started with the SDK, get a Developer Token from the Configuration page of your app in the [Box Developer\nConsole](https://app.box.com/developers/console). You can use this token to make test calls for your own Box account.\n\nThe SDK provides a `BoxDeveloperTokenAuth` class, which allows you to authenticate using your Developer Token.\nUse instance of `BoxDeveloperTokenAuth` to initialize `BoxClient` object.\nUsing `BoxClient` object you can access managers, which allow you to perform some operations on your Box account.\n\nThe example below demonstrates how to authenticate with Developer Token and print names of all items inside a root folder.\n\n```swift\nimport BoxSdkGen\n\nlet auth = BoxDeveloperTokenAuth(token: \"DEVELOPER_TOKEN_GOES_HERE\")\nlet client = BoxClient(auth: auth)\n\nlet items = try await client.folders.getFolderItems(folderId: \"0\")\nif let entries = items.entries {\n    for entry in entries {\n        switch entry {\n        case let .fileMini(file):\n            print(\"file \\(file.name!) [\\(file.id)]\")\n        case let .folderMini(folder):\n            print(\"folder \\(folder.name!) [\\(folder.id)]\")\n        case let .webLinkMini(webLink):\n            print(\"webLink \\(webLink.name!) [\\(webLink.id)]\")\n        }\n    }\n}\n```\n\nThe usage docs that show how to make calls to the Box API with the SDK can be found [here](https://github.com/box/box-swift-sdk-gen/tree/main/docs).\n\nWe recommend, familiarizing yourself with the remaining [authentication methods](https://github.com/box/box-swift-sdk-gen/tree/main/docs/Authentication.md), [uploading files](https://github.com/box/box-swift-sdk-gen/tree/main/docs/Uploads.md) and [downloading files](https://github.com/box/box-swift-sdk-gen/tree/main/docs/Downloads.md).\n\n# Integration Tests\n\n## Running integration tests locally\n\n### Create Platform Application\n\nTo run integration tests locally you will need a `Custom App` created in the [Box Developer\nConsole](https://app.box.com/developers/console)\nwith `Server Authentication (Client Credentials Grant)` selected as authentication method.\nOnce created you can edit properties of the application:\n\n- In section `App Access Level` select `App + Enterprise Access`. You can enable all `Application Scopes`.\n- In section `Advanced Features` enable `Make API calls using the as-user header` and `Generate user access tokens`.\n\nNow select `Authorization` and submit application to be reviewed by account admin.\n\n### Export configuration\n\nTo run integration tests, you need several environment variables specifying your account and the Box application you've created.\n\n1. Set the `CLIENT_ID` environment variable to its corresponding value from the `Configuration` tab in the section `OAuth 2.0 Credentials` of your application.\n2. Set the `CLIENT_SECRET` environment variable to its corresponding value from the `Configuration` tab in the section `OAuth 2.0 Credentials` of your application.\n3. Set the `ENTERPRISE_ID` environment variable to its corresponding value from the `General Settings` tab the section `App Info` of your application.\n4. Set the `USER_ID` environment variable to its corresponding value from the `General Settings` tab the section `App Info` of your application.\n5. Set the `BOX_FILE_REQUEST_ID` environment variable to the ID of file request already created in the user account, `BOX_EXTERNAL_USER_EMAIL` with email of free external user which not belongs to any enterprise.\n6. Set the `WORKFLOW_FOLDER_ID` environment variable to the ID of the Relay workflow that deletes the file that triggered the workflow. The workflow should have a manual start to be able to start it from the API.\n7. Set environment variable: `APP_ITEM_ASSOCIATION_FILE_ID` to the ID of the file with associated app item and `APP_ITEM_ASSOCIATION_FOLDER_ID` to the ID of the folder with associated app item.\n8. Set environment variable: `APP_ITEM_SHARED_LINK` to the shared link associated with app item.\n9. Set environment variable: `SLACK_AUTOMATION_USER_ID` to the ID of the user responsible for the Slack automation.\n10. Set environment variable: `SLACK_ORG_ID` to the ID of the Slack organization.\n11. Set environment variable: `SLACK_PARTNER_ITEM_ID` to the ID of the Slack partner item.\n\n### Running tests\n\nTo run integration tests locally:\n\n1. `swift test`\n\n# Questions, Bugs, and Feature Requests?\n\nNeed to contact us directly? [Browse the issues\ntickets](https://github.com/box/box-swift-sdk-gen/issues)! Or, if that\ndoesn't work, [file a new\none](https://github.com/box/box-swift-sdk-gen/issues/new) and we will get\nback to you. If you have general questions about the Box API, you can\npost to the [Box Developer Forum](https://forum.box.com/).\n\n# Copyright and License\n\nCopyright 2023 Box, Inc. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbox%2Fbox-swift-sdk-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbox%2Fbox-swift-sdk-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbox%2Fbox-swift-sdk-gen/lists"}