Skip to content

Get-TwitterBlocks

SYNOPSIS

Returns a collection of user objects or array of user ids that the authenticating user is blocking.

SYNTAX

Default (Default)

Get-TwitterBlocks [<CommonParameters>]

List

Get-TwitterBlocks [-List] [-SkipStatus] [-ExcludeEntities] [<CommonParameters>]

DESCRIPTION

Returns a collection of user objects or array of user ids that the authenticating user is blocking.

EXAMPLES

Example 1

PS > Get-TwitterBlocks

Returns an array of user ids that the authenticating user is blocking.

Example 2

PS > Get-TwitterBlocks -List -SkipStatus

Returns a collection of user objects that the authenticating user is blocking without the last status for each.

PARAMETERS

-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

-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

-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

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

Api Reference - GET blocks/ids

Api Reference - GET blocks/list