From 5aec7a3f305d6d096f2763a87e0167ce34cca3bb Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Sun, 20 Jan 2013 14:18:11 -0800 Subject: [PATCH] Remove notifications. API endpoints removed by Twitter. --- tests.py | 4 ---- tweepy/api.py | 18 ------------------ 2 files changed, 22 deletions(-) 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', -- 2.25.1