diff --git a/users.go b/users.go index 7aa1323..238b7fb 100644 --- a/users.go +++ b/users.go @@ -54,3 +54,11 @@ func (a TwitterApi) GetUserSearch(searchTerm string, v url.Values) (u []User, er a.queryQueue <- query{a.baseUrl + "/users/search.json", v, &u, _GET, response_ch} return u, (<-response_ch).err } + +func (a TwitterApi) ReportSpam(screenName string, v url.Values) (u User, err error) { + v = cleanValues(v) + v.Set("screen_name", screenName) + response_ch := make(chan response) + a.queryQueue <- query{a.baseUrl + "/users/report_spam.json", v, &u, _POST, response_ch} + return u, (<- response_ch).err +}