File: user.rb

package info (click to toggle)
ruby-twitter-oauth 0.4.94-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 152 kB
  • sloc: ruby: 446; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module TwitterOAuth
  class Client

    # Returns settings (including current trend, geo and sleep time information)
    # for the authenticating user.
    def settings
      get('/account/settings.json')
    end

    # Returns an HTTP 200 OK response code and a representation of the
    # requesting user if authentication was successful; returns a 401 status
    # code and an error message if not. Use this method to test if supplied user
    # credentials are valid.
    def verify_credentials
      get('/account/verify_credentials.json')
    end

  end
end