Get-TwitterFriends
SYNOPSIS
Returns a collection of user objects or array of user ids that the specified user is following.
SYNTAX
Default (Default)
Get-TwitterFriends [-ScreenName <String>] [-UserId <String>] [-ResultsPerPage <Int32>] [<CommonParameters>]
List
Get-TwitterFriends [-ScreenName <String>] [-UserId <String>] [-ResultsPerPage <Int32>] [-List] [-SkipStatus] [-ExcludeEntities] [<CommonParameters>]
DESCRIPTION
Returns a collection of user objects or array of user ids that the specified user is following.
EXAMPLES
Example 1
PS > Get-TwitterFriends -ScreenName thedavecarroll | Measure-Object | Select-Object -ExpandProperty Count
Returns an array of user ids of users that the specified user follows and displays the total count.
Example 2
PS > Get-TwitterFriends -ScreenName thedavecarroll -List -ExcludeEntities -ResultsPerPage 200
Returns a collection of user objects that the specified user follows, excluding the entities node.
PARAMETERS
-ScreenName
The screen name of the user for whom to return results.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UserId
The ID of the user for whom to return results.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ResultsPerPage
Specifies the number of results to retrieve per page.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-List
By using this switch, this command will return user objects instead of an array of user ids.
Type: SwitchParameter
Parameter Sets: List
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SkipStatus
Exclude the user statuses from the returned user objects.
Type: SwitchParameter
Parameter Sets: List
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: List
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.