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.

Source | Google | Stack overflow

Edit

git clone [email protected]:sferik/twitter-ruby.git

cd twitter-ruby

open lib/twitter/rest/oauth.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Twitter--REST--OAuth-token-for-pr


# Commit to git

git add lib/twitter/rest/oauth.rbgit commit -m "better docs for Twitter::REST::OAuth#token"


# Open pull request

gem 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!