Skip to content

Set-TwitterPinnedList

SYNOPSIS

Allows the authenticating user to pin or unpin a List.

SYNTAX

PinList (Default)

Set-TwitterPinnedList -List <List> [-PinList] [<CommonParameters>]

UnpinList

Set-TwitterPinnedList -List <List> [-UnpinList] [<CommonParameters>]

DESCRIPTION

Allows the authenticating user to pin or unpin a List.

EXAMPLES

Example 1

PS > Get-TwitterList -Id 1400680326754615296 | Set-TwitterPinnedList
List Id: 1400680326754615296, Name: PSFollowFriday-ListOwners is pinned

Pin the list PSFollowFriday-ListOwners.

Example 2

PS > Get-TwitterPinnedList | Select-Object -Last 1 | Set-TwitterPinnedList -UnpinList
List Id: 1400680326754615296, Name: PSFollowFriday-ListOwners is not pinned

Unpin the last pinned list.

PARAMETERS

-List

A list object retrieved from Get-TwitterList.

Type: BluebirdPS.APIV2.ListInfo.List
Parameter Sets: (All)
Aliases:

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

-PinList

Allows the authenticating user to pin a list.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: PinList
Aliases:

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

-UnpinList

Allows the authenticating user to unpin a list.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: UnpinList
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

BluebirdPS.APIV2.ListInfo.List

OUTPUTS

System.Object

NOTES

Online Version

Get-TwitterPinnedLis

Get-TwitterList

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

Api Reference - DELETE /2/users/:id/pinned_lists/:list_id