Commit b97038e0 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Add API.report_spam method.

parent f6ae5588
...@@ -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.
......
...@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment