Methods

Included Modules

Class/Module Index [+]

Quicksearch

Twitter::API::SpamReporting

Public Instance Methods

report_spam(*args) click to toggle source

The users specified are blocked by the authenticated user and reported as spammers

@see dev.twitter.com/docs/api/1.1/post/users/report_spam @rate_limited Yes @authentication Requires user context @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. @return [Array<Twitter::User>] The reported users. @overload report_spam(*users)

@param users [Array<Integer, String, Twitter::User>, Set<Integer, String, Twitter::User>] An array of Twitter user IDs, screen names, or objects.
@example Report @spam for spam
  Twitter.report_spam("spam")
  Twitter.report_spam(14589771) # Same as above

@overload report_spam(*users, options)

@param users [Array<Integer, String, Twitter::User>, Set<Integer, String, Twitter::User>] An array of Twitter user IDs, screen names, or objects.
@param options [Hash] A customizable set of options.
# File lib/twitter/api/spam_reporting.rb, line 24
def report_spam(*args)
  threaded_user_objects_from_response(:post, "/1.1/users/report_spam.json", args)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.