File: notifications.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 (17 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module TwitterOAuth
  class Client
    
    # Enables device notifications for updates from the specified user.  
    # Returns the specified user when successful.
    def follow(id)
      post("/notifications/follow/#{id}.json")
    end
    
    # Disables notifications for updates from the specified user to the authenticating user.  
    # Returns the specified user when successful.
    def leave(id)
      post("/notifications/leave/#{id}.json")
    end
    
  end
end