{"id":15471778,"url":"https://github.com/dkhamsing/twitter_oauth_token","last_synced_at":"2025-09-07T14:12:31.470Z","repository":{"id":59158344,"uuid":"53368203","full_name":"dkhamsing/twitter_oauth_token","owner":"dkhamsing","description":":hand: Twitter OAuth token Ruby library","archived":false,"fork":false,"pushed_at":"2016-07-29T17:01:43.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-24T17:36:11.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"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/dkhamsing.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":"2016-03-08T00:01:32.000Z","updated_at":"2019-06-30T12:57:29.000Z","dependencies_parsed_at":"2022-09-13T20:04:01.729Z","dependency_job_id":null,"html_url":"https://github.com/dkhamsing/twitter_oauth_token","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dkhamsing/twitter_oauth_token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhamsing%2Ftwitter_oauth_token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhamsing%2Ftwitter_oauth_token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhamsing%2Ftwitter_oauth_token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhamsing%2Ftwitter_oauth_token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkhamsing","download_url":"https://codeload.github.com/dkhamsing/twitter_oauth_token/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhamsing%2Ftwitter_oauth_token/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046000,"owners_count":25212982,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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-10-02T02:21:42.633Z","updated_at":"2025-09-07T14:12:31.450Z","avatar_url":"https://github.com/dkhamsing.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twitter_oauth_token\n\nGimme that Twitter OAuth access token!\n\n[![Circle CI](https://img.shields.io/circleci/project/dkhamsing/twitter_oauth_token.svg)](https://circleci.com/gh/dkhamsing/twitter_oauth_token) [![Gem Version](https://badge.fury.io/rb/twitter_oauth_token.svg)](https://badge.fury.io/rb/twitter_oauth_token)\n\nThis is the library version of the [`get-twitter-oauth-token`](#credits) command line tool  :sweat_smile:\n\n## Installation\n\n```shell\n$ gem install twitter_oauth_token\n```\n\n## Usage\n\n```shell\n$ irb\nirb(main):001:0\u003e require 'twitter_oauth_token'\n=\u003e true\nirb(main):002:0\u003e TwitterOAuthToken::get\n[Step 1 of 4] consumer key: ...\n[Step 2 of 4] consumer secret: ...\n[Step 3 of 4] open this link in a browser (sign in and authorize): https://api.twitter.com/oauth/authorize?oauth_token=jKbOtQAAAAAAt_QtAAABU1NHQWU\n[Step 4 of 4] enter pin: 1374423\n=\u003e {\"access_token\"=\u003e\"...\", \"access_token_secret\"=\u003e\"...\", \"error\"=\u003enil}\n```\n\n:tada:\n\n### Custom Prompts\n\n```ruby\nprompts = {\n  TwitterOAuthToken::PROMPT_CONSUMER_KEY =\u003e 'Enter Twitter app consumer key: ',\n  TwitterOAuthToken::PROMPT_CONSUMER_SECRET =\u003e 'Enter Twitter app consumer secret: ',\n  TwitterOAuthToken::PROMPT_OPEN_URL =\u003e 'Paste this URL in your browser: ',\n  TwitterOAuthToken::PROMPT_PIN =\u003e 'What\\'s the pin? '\n}\n\nTwitterOAuthToken::get(prompts)\n# Enter Twitter app consumer key: ...\n# ...\n```\n\n### Examples\n\n- [test](https://github.com/dkhamsing/twitter_oauth_token/blob/master/test/authorize_url_test.rb)\n- [`update_profile_pic`](https://github.com/dkhamsing/update_profile_pic)\n- [`delete_my_tweets`](https://github.com/dkhamsing/delete_my_tweets)\n\n## Credits\n\n- [`get-twitter-oauth-token`](https://github.com/jugyo/get-twitter-oauth-token)\n\n## Contact\n\n- [github.com/dkhamsing](https://github.com/dkhamsing)\n- [twitter.com/dkhamsing](https://twitter.com/dkhamsing)\n\n## License\n\nThis project is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkhamsing%2Ftwitter_oauth_token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkhamsing%2Ftwitter_oauth_token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkhamsing%2Ftwitter_oauth_token/lists"}