Test-TwitterListMembership
SYNOPSIS
Tests if a specified user is a member of the specified list.
SYNTAX
Test-TwitterListMembership [-List] <List> [-User] <User> [<CommonParameters>]
DESCRIPTION
Tests if a specified user is a member of the specified list.
If the specified user is a member of the specified list, returns true, otherwise returns false.
EXAMPLES
Example 1
PS > $List = Get-TwitterList -Id 92000812
PS > $List
PS > $List | Test-TwitterListMembership
Id : 92000812
Name : ps1
CreatedAt : 6/27/2013 7:42:03 PM
FollowerCount : 360
MemberCount : 57
Description : Powershell bloggers, trainers, authors - additions, recommendations welcome.
Private : False
OwnerId : 16177793
True
Checks if the authenticating user is a member of the specified list.
Example 2
PS > $List | Test-TwitterListMembership -User (Get-TwitterUser -User joeyaiello)
True
Checks if joeyaiello is a member of the specified list.
PARAMETERS
-List
A list object retrieved from Get-TwitterList.
Type: BluebirdPS.APIV2.ListInfo.List
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-User
The Twitter user object to verify if they are a member of the specified list.
Type: BluebirdPS.APIV2.UserInfo.User
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
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.