{"id":17723764,"url":"https://github.com/ncw/dropbox","last_synced_at":"2025-03-14T05:32:02.061Z","repository":{"id":140293898,"uuid":"21786938","full_name":"ncw/dropbox","owner":"ncw","description":"Go (golang) client library for the Dropbox core and Datastore API with support for uploading and downloading encrypted files.","archived":false,"fork":false,"pushed_at":"2017-05-22T19:35:23.000Z","size":67,"stargazers_count":10,"open_issues_count":0,"forks_count":26,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-06-19T06:49:21.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncw.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}},"created_at":"2014-07-13T09:25:00.000Z","updated_at":"2023-12-18T09:47:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d044a43-a0eb-47c1-9b89-c57738e585ec","html_url":"https://github.com/ncw/dropbox","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/ncw%2Fdropbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Fdropbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Fdropbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Fdropbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncw","download_url":"https://codeload.github.com/ncw/dropbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532517,"owners_count":20306151,"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-10-25T15:43:59.545Z","updated_at":"2025-03-14T05:32:01.765Z","avatar_url":"https://github.com/ncw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"dropbox\n=======\nGo client library for the Dropbox core and Datastore API with support for uploading and downloading encrypted files.\n\nSupport of the Datastore API should be considered as a beta version.\n\nPrerequisite\n------------\nTo use this library, you must have a valid client ID (app key) and client secret (app secret) provided by Dropbox.\u003cbr\u003e\nTo register a new client application, please visit https://www.dropbox.com/developers/apps/create\n\nInstallation\n------------\nThis library depends on the oauth2 package, it can be installed with the go get command:\n\n    $ go get golang.org/x/oauth2\n\nThis package can be installed with the go get command:\n\n    $ go get github.com/stacktic/dropbox\n\n\nExamples\n--------\nThis simple 4-step example will show you how to create a folder:\n\n    package main\n\n    import (\n        \"dropbox\"\n        \"fmt\"\n    )\n\n    func main() {\n        var err error\n        var db *dropbox.Dropbox\n\n        var clientid, clientsecret string\n        var token string\n\n        clientid = \"xxxxx\"\n        clientsecret = \"yyyyy\"\n        token = \"zzzz\"\n\n        // 1. Create a new dropbox object.\n        db = dropbox.NewDropbox()\n\n        // 2. Provide your clientid and clientsecret (see prerequisite).\n        db.SetAppInfo(clientid, clientsecret)\n\n        // 3. Provide the user token.\n        db.SetAccessToken(token)\n\n        // 4. Send your commands.\n        // In this example, you will create a new folder named \"demo\".\n        folder := \"demo\"\n        if _, err = db.CreateFolder(folder); err != nil {\n            fmt.Printf(\"Error creating folder %s: %s\\n\", folder, err)\n        } else {\n            fmt.Printf(\"Folder %s successfully created\\n\", folder)\n        }\n    }\n\nIf you do not know the user token, you can replace step 3 by a call to the Auth method:\n\n        // This method will ask the user to visit an URL and paste the generated code.\n        if err = db.Auth(); err != nil {\n            fmt.Println(err)\n            return\n        }\n        // You can now retrieve the token if you want.\n        token = db.AccessToken()\n\nIf you want a more complete example, please check the following project: https://github.com/stacktic/dbox.\n\nDocumentation\n-------------\n\nAPI documentation can be found here: http://godoc.org/github.com/stacktic/dropbox.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncw%2Fdropbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncw%2Fdropbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncw%2Fdropbox/lists"}