Skip to content

Add-TwitterFriend

SYNOPSIS

Allows the authenticating user to follow another Twitter user.

SYNTAX

ById (Default)

Add-TwitterFriend -Id <String> [<CommonParameters>]

ByUser

Add-TwitterFriend -User <User> [<CommonParameters>]

DESCRIPTION

Allows the authenticating user to follow another Twitter user.

If the target user does not have public Tweets, this endpoint will send a follow request.

EXAMPLES

Example 1

PS > Add-TwitterFriend -Id 1330877955057344513
Following user 1330877955057344513: True.

Follow the user with the specified id.

Example 2

PS > Get-TwitterFriend -UserName BluebirdPS | Add-TwitterFriend
Following user 1330877955057344513: True.

Follow the user returned by Get-TwitterUser.

PARAMETERS

-Id

Specifies the id of the user to follow.

Type: String
Parameter Sets: ById
Aliases:

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

-User

The user object, returned by Get-TwitterUser, to follow.

Type: User
Parameter Sets: ByUser
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
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

System.String

BluebirdPS.APIV2.UserInfo.User

OUTPUTS

System.String

NOTES

Online Version

Remove-TwitterFriend

Get-TwitterFriends

Get-TwitterUser

Api Reference - POST /2/users/:id/following