{"id":15403850,"url":"https://github.com/twe4ked/simple_twitter_oauth","last_synced_at":"2025-03-28T01:51:45.081Z","repository":{"id":56895883,"uuid":"72802357","full_name":"twe4ked/simple_twitter_oauth","owner":"twe4ked","description":"🐦 A really simple Twitter OAuth Ruby Gem.","archived":false,"fork":false,"pushed_at":"2016-11-04T01:44:27.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T06:18:56.281Z","etag":null,"topics":["oauth","ruby","rubygem","twitter","twitter-oauth"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/simple_twitter_oauth","language":"Ruby","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/twe4ked.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-04T01:24:25.000Z","updated_at":"2016-11-04T01:45:35.000Z","dependencies_parsed_at":"2022-08-21T01:50:22.557Z","dependency_job_id":null,"html_url":"https://github.com/twe4ked/simple_twitter_oauth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Fsimple_twitter_oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Fsimple_twitter_oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Fsimple_twitter_oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twe4ked%2Fsimple_twitter_oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twe4ked","download_url":"https://codeload.github.com/twe4ked/simple_twitter_oauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245955072,"owners_count":20699881,"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":["oauth","ruby","rubygem","twitter","twitter-oauth"],"created_at":"2024-10-01T16:10:23.161Z","updated_at":"2025-03-28T01:51:45.058Z","avatar_url":"https://github.com/twe4ked.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Twitter OAuth\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n``` ruby\ngem 'simple_twitter_oauth'\n```\n\n## Usage\n\nDocs: http://www.rubydoc.info/github/twe4ked/simple_twitter_oauth\n\n``` ruby\nrequest_token = SimpleTwitterOAuth.get_request_token(\n  consumer_key: 'abc123',\n  consumer_secret: 'def456',\n  callback_url: 'https://example.com/callback',\n)\n\nsession[:token] = request_token.token\nsession[:token_secret] = request_token.secret\n\nredirect_to request_token.authorize_url\n```\n\n``` ruby\naccess_token = SimpleTwitterOAuth.get_access_token(\n  consumer_key: 'abc123',\n  consumer_secret: 'def456',\n  token: session.delete(:token),\n  token_secret: session.delete(:token_secret),\n  oauth_verifier: params[:oauth_verifier],\n)\n\nif access_token\n  # These are the methods available on AccessToken:\n  #\n  #     access_token.screen_name\n  #     access_token.token\n  #     access_token.secret\n\n  redirect_to account_path, success: 'Account added successfully'\nelse\n  redirect_to account_path, alert: 'Adding account failed'\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies.\nThen, run `rake` to run the tests.\n\nTo install this gem onto your local machine, run `bundle exec rake install`.\nTo release a new version, update the version number in `version.rb`,\nand then run `bundle exec rake release`,\nwhich will create a git tag for the version,\npush git commits and tags,\nand push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/twe4ked/simple_twitter_oauth This project is intended to be a safe,\nwelcoming space for collaboration,\nand contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwe4ked%2Fsimple_twitter_oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwe4ked%2Fsimple_twitter_oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwe4ked%2Fsimple_twitter_oauth/lists"}