{"id":13729260,"url":"https://github.com/sivchari/gotwtr","last_synced_at":"2025-04-15T01:42:55.886Z","repository":{"id":37802997,"uuid":"408744067","full_name":"sivchari/gotwtr","owner":"sivchari","description":"gotwtr provides Twitter v2 API","archived":false,"fork":false,"pushed_at":"2023-09-22T08:41:51.000Z","size":257,"stargazers_count":80,"open_issues_count":6,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-28T13:44:26.133Z","etag":null,"topics":["go","golang","twitter","twitter-api","twitter-client"],"latest_commit_sha":null,"homepage":"https://developer.twitter.com/en/docs/twitter-api/tools-and-libraries/v2","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sivchari.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2021-09-21T08:33:21.000Z","updated_at":"2024-12-29T00:04:58.000Z","dependencies_parsed_at":"2024-01-06T13:08:18.076Z","dependency_job_id":null,"html_url":"https://github.com/sivchari/gotwtr","commit_stats":null,"previous_names":["sivchari/go-twitter"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivchari%2Fgotwtr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivchari%2Fgotwtr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivchari%2Fgotwtr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivchari%2Fgotwtr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sivchari","download_url":"https://codeload.github.com/sivchari/gotwtr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991511,"owners_count":21194893,"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":["go","golang","twitter","twitter-api","twitter-client"],"created_at":"2024-08-03T02:00:57.592Z","updated_at":"2025-04-15T01:42:55.869Z","avatar_url":"https://github.com/sivchari.png","language":"Go","funding_links":[],"categories":["Libraries"],"sub_categories":["Go"],"readme":"# gotwtr\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/sivchari/gotwtr.svg)](https://pkg.go.dev/github.com/sivchari/gotwtr)\n[![reviewdog](https://github.com/sivchari/gotwtr/actions/workflows/lint.yml/badge.svg)](https://github.com/sivchari/gotwtr/actions/workflows/lint.yml)\n[![test](https://github.com/sivchari/gotwtr/actions/workflows/test.yml/badge.svg)](https://github.com/sivchari/gotwtr/actions/workflows/test.yml)\n\ngotwtr is a Go client library for the Twitter v2 API.\n\n## Note\n\nWe covers only Twitter v2 API supported by OAuth 2.0 Bearer Token.\n\nWe will had worked on it, when new one is be handled OAuth 2.0.\n\n## Installation\n\n```console\ngo get github.com/sivchari/gotwtr\n```\n\n## Documentation\n\nPlease see [GoDoc](https://pkg.go.dev/github.com/sivchari/gotwtr)\n\n## Example\n\n### Tweet lookup\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/sivchari/gotwtr\"\n)\n\nfunc main() {\n\tclient := gotwtr.New(\"YOUR_TWITTER_BEARER_TOKEN\")\n\t// look up multiple tweets\n\tts, err := client.RetrieveMultipleTweets(context.Background(), []string{\"id\", \"id2\"})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfor _, t := range ts.Tweets {\n\t\tfmt.Println(t)\n\t}\n\n\t// look up single tweet\n\tt, err := client.RetrieveSingleTweet(context.Background(), \"id\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(t.Tweet)\n}\n```\n\nIf you wanna more example, please see examples dir.\n\nThese are covered all code gotwtr provides Twitter v2 API interface.\n\n## Contributing\n\nWe are welcome to contribute to this project.\n\nFork and make a Pull Request, or create an Issue if you see any problem or any enhancement, feature request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivchari%2Fgotwtr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsivchari%2Fgotwtr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivchari%2Fgotwtr/lists"}