Skip to content

Commit

Permalink
Implement the report_spam API.
Browse files Browse the repository at this point in the history
  • Loading branch information
chris authored and pengwynn committed Apr 21, 2010
1 parent b725b1b commit 91275b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/twitter/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,12 @@ def block(id)
def unblock(id)
perform_post("/#{API_VERSION}/blocks/destroy/#{id}.json")
end


# When reporting a user for spam, specify one or more of id, screen_name, or user_id
def report_spam(options)
perform_post("/#{API_VERSION}/report_spam.json", :body => options)
end

def help
perform_get("/#{API_VERSION}/help/test.json")
end
Expand Down

0 comments on commit 91275b5

Please sign in to comment.