Sha256: 24de023c7603616ab3e55685e0a11ff70993c8b691c88175f59e28a5cb35027c
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
require 'twitter/request' require 'twitter/rest/utils' require 'twitter/user' module Twitter module REST module SpamReporting include Twitter::REST::Utils # The users specified are blocked by the authenticated user and reported as spammers # # @see https://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 [Enumerable<Integer, String, Twitter::User>] A collection of Twitter user IDs, screen names, or objects. # @overload report_spam(*users, options) # @param users [Enumerable<Integer, String, Twitter::User>] A collection of Twitter user IDs, screen names, or objects. # @param options [Hash] A customizable set of options. def report_spam(*args) parallel_user_objects_from_response(:post, '/1.1/users/report_spam.json', args) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.8.0 | lib/twitter/rest/spam_reporting.rb |
twitter-5.7.1 | lib/twitter/rest/spam_reporting.rb |
twitter-5.7.0 | lib/twitter/rest/spam_reporting.rb |