Method: Twitter::API#verify_credentials
- Defined in:
- lib/twitter/api.rb
#verify_credentials(options = {}) ⇒ Twitter::User Also known as: current_user
Returns the requesting user if authentication was successful, otherwise raises Error::Unauthorized
44 45 46 |
# File 'lib/twitter/api.rb', line 44 def verify_credentials(={}) object_from_response(Twitter::User, :get, "/1.1/account/verify_credentials.json", ) end |