{"id":21744115,"url":"https://github.com/echo511/dropbox-api","last_synced_at":"2025-03-21T01:40:47.400Z","repository":{"id":3933379,"uuid":"5023995","full_name":"echo511/Dropbox-api","owner":"echo511","description":"Dropbox API handler for Nette Famework","archived":false,"fork":false,"pushed_at":"2012-07-17T11:42:52.000Z","size":140,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-25T22:21:45.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/echo511.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":"2012-07-13T19:30:27.000Z","updated_at":"2022-10-27T09:07:57.000Z","dependencies_parsed_at":"2022-09-01T15:23:50.385Z","dependency_job_id":null,"html_url":"https://github.com/echo511/Dropbox-api","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/echo511%2FDropbox-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo511%2FDropbox-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo511%2FDropbox-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo511%2FDropbox-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echo511","download_url":"https://codeload.github.com/echo511/Dropbox-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722652,"owners_count":20499151,"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-11-26T07:10:01.934Z","updated_at":"2025-03-21T01:40:47.380Z","avatar_url":"https://github.com/echo511.png","language":"PHP","readme":"Dropbox API handler for Nette Framework.\n========================================\n\nNeeds to be said this component is based on a great API which can be found here: https://github.com/jimdoescode/CodeIgniter-Dropbox-API-Library\n\nImplementation\n--------------\n\nRegister in bootstrap.php:\n\n    Echo511\\Dropbox\\CompilerExtension::register($configurator);\n\nConfigure config.neon:\n\n    common:\n            dropbox:\n                    # Identity\n                    key: ''\n                    secret: ''\n\n                    # OAuthStorage\n                    oauthStorage: @dropbox.singleUser\n\n                    # Sandbox for app folder access\n                    # Dropbox for full access\n                    defaultRoot: 'sandbox' | 'dropbox'\n\n                    # Use Nette's panel for dumping responses\n                    panel: true\n\n\nUsage\n-----\n\nDropbox provides lifetime access token for your app once user allows it. Therefore is useful to store this token (actually there are two: token, token_secret) for further use.\n\nStorage based on session for single user is already included. In presenter the actuall call for this storage would look like:\n\n    $rooftop = $this-\u003econtext-\u003edropbox-\u003erooftop-\u003egetOAuthStorage() // Get storage\n                                               -\u003eauthorize(); // This method calls $rooftop-\u003esetOAuthAccess();\n\nThen you can call these:\n\n    // Get account information\n    $rooftop-\u003ecall('account');\n\n    // Server/Client\n    $rooftop-\u003ecall('add', $dropboxRelativePath, $localAbsolutePath, $options);\n    $rooftop-\u003ecall('get', $localAbsolutePath, $dropboxRelativePath);\n    $rooftop-\u003ecall('thumbnails', $localAbsolutePath, $dropboxRelativePath, $options);\n\n    // Searching \u0026 Metadata\n    $rooftop-\u003ecall('search', $dropboxRelativePath, $query, $options);\n    $rooftop-\u003ecall('metadata', $dropboxRelativePath, $options);\n    $rooftop-\u003ecall('revisions', $dropboxRelativePath, $options);\n\n    // Server side operations\n    $rooftop-\u003ecall('create_folder', $dropboxRelativePath);\n    $rooftop-\u003ecall('move', $dropboxFrom, $dropboxTo);\n    $rooftop-\u003ecall('copy', $dropboxFrom, $dropboxTo);\n    $rooftop-\u003ecall('delete', $dropboxRelativePath);\n    $rooftop-\u003ecall('restore', $dropboxRelativePath, $rev);\n\n    // Public links\n    $rooftop-\u003ecall('shares', $dropboxRelativePath);\n    $rooftop-\u003ecall('media', $dropboxRelativePath);\n\n    // Synchronise\n    $rooftop-\u003ecall('delta', $cursor);\n    $rooftop-\u003ecall('synchronise', $localAbsolutePath);\n\n\nMore info\n---------\nhttps://www.dropbox.com/developers/reference/api","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecho511%2Fdropbox-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecho511%2Fdropbox-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecho511%2Fdropbox-api/lists"}