Skip to content

Set-TweetLike

SYNOPSIS

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

SYNTAX

Like (Default)

Set-TweetLike -TweetId <Int64> [-Like] [-ExcludeEntities] [<CommonParameters>]

Unlike

Set-TweetLike -TweetId <Int64> [-Unlike] [-ExcludeEntities] [<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 -TweetId 1330354141055643648

Like the specified tweet.

Example 2

PS > Set-TweetLike -TweetId 1330354141055643648 -Unlike

Un-like the specified tweet.

PARAMETERS

-TweetId

The numerical ID of the desired Tweet.

Type: Int64
Parameter Sets: (All)
Aliases: Id)

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: None
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: None
Accept pipeline input: False
Accept wildcard characters: False

-ExcludeEntities

Exclude the entities node.

This node offers a variety of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

None

OUTPUTS

System.Object

NOTES

Online Version

Get-TweetLike

API Documentation - POST favorites/create

API Documentation - POST favorites/destroy