From: Joshua Roesslein Date: Sun, 20 Jan 2013 22:18:11 +0000 (-0800) Subject: Remove notifications. API endpoints removed by Twitter. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5aec7a3f305d6d096f2763a87e0167ce34cca3bb;p=tweepy.git Remove notifications. API endpoints removed by Twitter. --- diff --git a/tests.py b/tests.py index 57b4446..7fa0d35 100644 --- 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') diff --git a/tweepy/api.py b/tweepy/api.py index 7d6dc5c..aa232c7 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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',