{"id":18452023,"url":"https://github.com/putdotio/go-putio","last_synced_at":"2025-04-08T02:33:15.657Z","repository":{"id":49957959,"uuid":"79237611","full_name":"putdotio/go-putio","owner":"putdotio","description":"Put.io Go API client","archived":false,"fork":true,"pushed_at":"2023-09-16T15:58:54.000Z","size":176,"stargazers_count":18,"open_issues_count":0,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-06-18T17:04:53.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/putdotio/go-putio","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"igungor/go-putio","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/putdotio.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}},"created_at":"2017-01-17T14:50:42.000Z","updated_at":"2023-12-05T10:57:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/putdotio/go-putio","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putdotio%2Fgo-putio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putdotio%2Fgo-putio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putdotio%2Fgo-putio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putdotio%2Fgo-putio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/putdotio","download_url":"https://codeload.github.com/putdotio/go-putio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223300438,"owners_count":17122609,"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-06T07:29:53.678Z","updated_at":"2024-11-06T07:29:59.277Z","avatar_url":"https://github.com/putdotio.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[![Golang CI Linter](https://github.com/putdotio/go-putio/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/putdotio/go-putio/actions/workflows/golangci-lint.yml)\n[![Golang Tests](https://github.com/putdotio/go-putio/actions/workflows/go-test.yml/badge.svg)](https://github.com/putdotio/go-putio/actions/workflows/go-test.yml)\n\n\n# putio\n\nputio is a Go client library for accessing the [Put.io API v2](https://api.put.io/v2/docs).\n\n## Documentation\n\nAvailable on [GoDoc](http://godoc.org/github.com/putdotio/go-putio)\n\n## Install\n\n```sh\ngo get github.com/putdotio/go-putio@latest\ngo get golang.org/x/oauth2@latest\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n        \"fmt\"\n        \"log\"\n        \"context\"\n\n        \"golang.org/x/oauth2\"\n        \"github.com/putdotio/go-putio\"\n)\n\nfunc main() {\n    oauthToken := \"\u003cYOUR-TOKEN-HERE\u003e\"\n    tokenSource := oauth2.StaticTokenSource(\u0026oauth2.Token{AccessToken: oauthToken})\n    oauthClient := oauth2.NewClient(context.TODO(), tokenSource)\n\n    client := putio.NewClient(oauthClient)\n\n    const rootDir = 0\n    root, err := client.Files.Get(context.TODO(), rootDir)\n    if err != nil {\n        log.Fatal(err)\n    }\n    fmt.Println(root.Name)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputdotio%2Fgo-putio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fputdotio%2Fgo-putio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputdotio%2Fgo-putio/lists"}