Skip to content

Set-TweetLike

SYNOPSIS

Likes or un-likes the specified Tweet as the authenticating user.

SYNTAX

Like (Default)

Set-TweetLike -Id <String> [-Like] [<CommonParameters>]

Unlike

Set-TweetLike -Id <String> [-Unlike] [<CommonParameters>]

DESCRIPTION

Likes or un-likes the specified Tweet as the authenticating user.

The immediately returned Tweet object may not indicate the resultant status of the Tweet.

EXAMPLES

Example 1

PS > Set-TweetLike -Id 1330354141055643648

Like the specified Tweet.

Example 2

PS > Set-TweetLike -Id 1330354141055643648 -Unlike

Un-like 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

-Like

Like the specified Tweet.

Type: SwitchParameter
Parameter Sets: Like
Aliases:

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

-Unlike

Un-like the specified Tweet.

Type: SwitchParameter
Parameter Sets: Unlike
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-TweetLike

API Documentation - POST /2/users/:id/likes

API Documentation - DELETE /2/users/:id/likes/:tweet_id