Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
5aec7a3f
Commit
5aec7a3f
authored
Jan 20, 2013
by
Joshua Roesslein
Browse files
Remove notifications. API endpoints removed by Twitter.
parent
7f99421f
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests.py
View file @
5aec7a3f
...
...
@@ -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'
)
...
...
tweepy/api.py
View file @
5aec7a3f
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment