{"id":19780479,"url":"https://github.com/cbetta/box-playground","last_synced_at":"2026-06-08T18:32:36.278Z","repository":{"id":40743967,"uuid":"145136001","full_name":"cbetta/box-playground","owner":"cbetta","description":"My work-in-progress personal samples for the Box API","archived":false,"fork":false,"pushed_at":"2022-12-22T09:00:17.000Z","size":85,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-15T06:17:57.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/cbetta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-17T15:17:08.000Z","updated_at":"2018-10-17T10:52:50.000Z","dependencies_parsed_at":"2023-01-30T06:30:47.865Z","dependency_job_id":null,"html_url":"https://github.com/cbetta/box-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cbetta/box-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbetta%2Fbox-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbetta%2Fbox-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbetta%2Fbox-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbetta%2Fbox-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbetta","download_url":"https://codeload.github.com/cbetta/box-playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbetta%2Fbox-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34075956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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-12T05:39:56.041Z","updated_at":"2026-06-08T18:32:36.256Z","avatar_url":"https://github.com/cbetta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Samples for Box Platform  \n\nThis is my personal playground for Box's API. The goal of these samples is \nfor me to familiarize myself with the Box API and its SDKs.\n\n## Configuration\n\nThere are three configuration files for these samples. For all, you need to create an \naccount and app on [https://developer.box.com/](https://developer.box.com/) and then head\nover to the configuration section for your app.\n\n### `developer_token.json`\n\nIn the `Configuration` page of your application is a section called `Developer Token`. Generate a token and then copy-paste it into the `developer_token.json` file.\n\n```json\n{\n  \"token\": \"[YOUR_TOKEN]\"\n}\n```\n\u003e This token is ony valid for a few hours and need to be reset manually every time.\n\n### `private_key.json`\n\nFor the samples that use a public/private key, head over to the same `Configuration` page, then make sure your `Authentication Method` is set to `OAuth 2.0 with JWT (Server Authentication)`. Then head down to the `Add and Manage Public Keys` section. \n\nClick the `Generate a Public/Private Keypair` button and download the resulting file to the \nroot of this project into the `private_key.json` file. It should look something like this.\n\n```json\n{\n  \"boxAppSettings\": {\n    \"clientID\": \"\",\n    \"clientSecret\": \"\",\n    \"appAuth\": {\n      \"publicKeyID\": \"\",\n      \"privateKey\": \"\",\n      \"passphrase\": \"\"\n    }\n  },\n  \"enterpriseID\": \"\"\n}\n```\n\n### `oauth2_credentials.json`\n\nFor the samples that use OAauth2 authentication, head over to the  `Configuration` page of your app, then make sure your `Authentication Method` is set to `Standard OAuth 2.0 (User Authentication)`. \n\nThen copy over the client ID and secret into a file called `oauth2_credentials.json`.\n\n```\n{\n  \"clientID\": \"\",\n  \"clientSecret\": \"\",\n  \"redirectUrl\": \"http://localhost:3000/auth\"\n}\n```\n\n\u003e Make sure your `redirectUrl` matches your app's specified redirect URL on the developer console. Make sure to set this to `http://localhost:3000/auth` for these samples.\n\n## Large files\n\nSome samples require a large file. Simply download the `50MB.zip` file from [thinkbroadband.com/download](https://www.thinkbroadband.com/download) and put it in your project root.\n\n## Running samples\n\nAfter you finished the configuration, you can run each samples as follows.\n\n### Note\n\nNot all samples are runnable, as some are thought experiments on future SDK design changes.\n\n### Node\n\n```sh\nnpm install # or yarn install\nnode node/[script-name.js]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbetta%2Fbox-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbetta%2Fbox-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbetta%2Fbox-playground/lists"}