Sha256: 93c44090c70a6cda76f0cbe56200ae40c01b66b8c5dd45365531e020366ab3f8
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
require 'twitter/rest/api/utils' require 'twitter/user' module Twitter module REST module API module SpamReporting include Twitter::REST::API::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) threaded_user_objects_from_response(:post, '/1.1/users/report_spam.json', args) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems