Gist 562766
✓ Published0🌍 Public
XXXX
Last edited Sep 2, 2010
Created on Sep 2, 2010
This example demonstrates a command-line workflow for authenticating a Twitter user via OAuth and displaying their rate-limit status. It shows the authorization URL, prompts for a PIN, and exchanges it for an access token using the `twitter_oauth` gem. The script then outputs the rate-limit data as YAML and prints the token and secret. It relies on the `TwitterOAuth::Client` class and the `request_token`, `authorize`, and `rate_limit_status` methods, with user input handled through standard input.
AI-generated description