Skip to content

Set-Retweet

SYNOPSIS

Retweet or unretweet an existing Tweet.

SYNTAX

Retweet (Default)

Set-Retweet -Id <String> [-Retweet] [<CommonParameters>]

Unretweet

Set-Retweet -Id <String> [-Unretweet] [<CommonParameters>]

DESCRIPTION

Retweet or unretweet an existing Tweet.

Returns the original Tweet with Retweet details embedded.

EXAMPLES

Example 1

PS > Set-Retweet -Id 1330354141055643648

Retweets the specified Tweet.

Example 2

PS > Set-Retweet -Id 1330354141055643648 -Unretweet

Unretweets the specified Tweet.

PARAMETERS

-Id

The id of the Tweet.

Type: String
Parameter Sets: (All)
Aliases:

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

-Retweet

Instructs the command to retweet the specified Tweet.

Type: SwitchParameter
Parameter Sets: Retweet
Aliases:

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

-Unretweet

Instructs the command to unretweet the specified Tweet.

Type: SwitchParameter
Parameter Sets: Unretweet
Aliases:

Required: False
Position: Named
Default value: False
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

None

OUTPUTS

System.Object

NOTES

Online Version

Get-Tweet

API Documentation - POST statuses/retweet/:id

API Documentation - POST statuses/unretweet/:id