twitter-ruby
https://github.com/sferik/twitter-ruby
Ruby
A Ruby interface to the Twitter API.
Twitter::REST::OAuth#token
Allows a registered application to obtain an OAuth 2 Bearer Token, which can be used to make API requests on an application's own behalf, without a user context. Only one bearer token may exist outstanding for an application, and repeated requests to this method will yield the same already-existent token until it has been invalidated.
Edit
git clone [email protected]:sferik/twitter-ruby.git
cd twitter-ruby
open lib/twitter/rest/oauth.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Twitter--REST--OAuth-token-for-pr
# Commit to gitgit add lib/twitter/rest/oauth.rbgit commit -m "better docs for Twitter::REST::OAuth#token"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Twitter--REST--OAuth-token-for-pr
hub pull-request
# Celebrate!