Skip to content

Submit-TwitterUserAsSpam

SYNOPSIS

Report the specified user as a spam account to Twitter.

SYNTAX

Submit-TwitterUserAsSpam [-UserName] <String> [-Id <String>] [-Block] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Report the specified user as a spam account to Twitter.

You can opt to block the user by using the Block switch parameter.

If you want to verify that you have reported a user, you can use the Get-TwitterFriendship command.

EXAMPLES

Example 1

PS > Get-TwitterUser -User rossxhype | Submit-TwitterUserAsSpam
Confirm
Are you sure you want to perform this action?
Performing the operation "Report as Spam" on target "rossxhype, CreatedAt: 10/17/2015 4:42:02 AM, Description: ********".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y

Report the specified user as spam.

Example 2

PS > Get-TwitterUser -User ihezoyetahek | Submit-TwitterUserAsSpam -Block
Confirm
Are you sure you want to perform this action?
Performing the operation "Report as Spam and Block" on target "ihezoyetahek, CreatedAt: 10/14/2015 11:41:01 PM, Description: ********".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y

Report the specified user as spam as well as block them.

PARAMETERS

-User

The user object, returned by Get-TwitterUser, to report as spam, and optionally block.

Type: User
Parameter Sets: UnblockByUser, BlockByUser
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Block

Indicates to block the specified user, at the same time as reporting them as spam.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

BluebirdPS.APIV2.UserInfo.User

OUTPUTS

None

NOTES

Online Version

Get-TwitterUser

Get-TwitterFriendship

Api Reference - POST users/report_spam