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
b97038e0
Commit
b97038e0
authored
Oct 14, 2009
by
Josh Roesslein
Browse files
Add API.report_spam method.
parent
f6ae5588
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
b97038e0
...
@@ -18,6 +18,7 @@ during upgrade will be listed here.
...
@@ -18,6 +18,7 @@ during upgrade will be listed here.
Parser updated to handle cursor responses. See above.
Parser updated to handle cursor responses. See above.
+ Fix Status.source_url parsing
+ Fix Status.source_url parsing
+ Fix search result 'source' parsing to properly unescape html and extract source
+ Fix search result 'source' parsing to properly unescape html and extract source
+ Added report_spam method
+ Cursor
+ Cursor
Added the Cursor object to help with pagination within the API.
Added the Cursor object to help with pagination within the API.
...
...
tweepy/api.py
View file @
b97038e0
...
@@ -848,6 +848,24 @@ class API(object):
...
@@ -848,6 +848,24 @@ class API(object):
require_auth
=
True
require_auth
=
True
)
)
""" report_spam
The user specified in the id is blocked by the authenticated user
and reported as a spammer.
Parameters: id or user_id or screen_name
Returns: User
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-report_spam
"""
report_spam
=
bind_api
(
path
=
'/report_spam.json'
,
method
=
'POST'
,
parser
=
parse_user
,
allowed_param
=
[
'id'
,
'user_id'
,
'screen_name'
],
require_auth
=
True
)
""" saved_searches
""" saved_searches
Returns the authenticated user's saved search queries.
Returns the authenticated user's saved search queries.
...
...
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