Remove notifications. API endpoints removed by Twitter.
authorJoshua Roesslein <jroesslein@gmail.com>
Sun, 20 Jan 2013 22:18:11 +0000 (14:18 -0800)
committerJoshua Roesslein <jroesslein@gmail.com>
Sun, 20 Jan 2013 22:18:11 +0000 (14:18 -0800)
tests.py
tweepy/api.py

index 57b4446f597a506ff5c68c1b1fecbe860baefbb1..7fa0d3552a7a7b16e4502922ecc9524921a84be2 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -232,10 +232,6 @@ class TweepyAPITests(unittest.TestCase):
         self.api.create_favorite(4901062372)
         self.api.destroy_favorite(4901062372)
 
-    def testenabledisablenotifications(self):
-        self.api.enable_notifications('twitter')
-        self.api.disable_notifications('twitter')
-
     def testcreatedestroyblock(self):
         self.api.create_block('twitter')
         self.api.destroy_block('twitter')
index 7d6dc5c3ba7a0966d9165c24a53decf603636a33..aa232c7553fce613f5246b16fd861f10e3cf0a87 100644 (file)
@@ -448,24 +448,6 @@ class API(object):
         require_auth = True
     )
 
-    """ notifications/follow """
-    enable_notifications = bind_api(
-        path = '/notifications/follow.json',
-        method = 'POST',
-        payload_type = 'user',
-        allowed_param = ['id', 'user_id', 'screen_name'],
-        require_auth = True
-    )
-
-    """ notifications/leave """
-    disable_notifications = bind_api(
-        path = '/notifications/leave.json',
-        method = 'POST',
-        payload_type = 'user',
-        allowed_param = ['id', 'user_id', 'screen_name'],
-        require_auth = True
-    )
-
     """ blocks/create """
     create_block = bind_api(
         path = '/blocks/create.json',