Get-TwitterUser
SYNOPSIS
Returns a variety of information about the specified user.
SYNTAX
Get-TwitterUser [[-User] <String[]>] [-IncludeExpansions] [<CommonParameters>]
DESCRIPTION
Returns a variety of information about the specified user.
If no input is provided, returns the authenticating user.
EXAMPLES
Example 1
PS > Get-TwitterUser
Id : 292670084
Name : Dave Carroll
UserName : thedavecarroll
CreatedAt : 5/4/2011 1:22:46 AM
Description : #PowerShell #Blogger #RushTheBand #TTRPG #RetroComputing #Puns #Doggos #Tech #StarTrek #INTJ #9w1
https://t.co/fLbRHoxt39
Entities : {https://thedavecarroll.com/, https://pronoun.is/he}
Location : Nashville, TN
PinnedTweetId : 1564616680000688137
ProfileImageUrl : https://pbs.twimg.com/profile_images/1509519500219146242/LV6Du2YA_normal.jpg
Protected : False
PublicMetrics : FollowersCount: 1138, FollowingCount: 1792, ListedCount: 36, TweetCount: 8457
Url : https://t.co/CulYKwYNG4
Verified : False
Withheld :
Return the authenticating user's information.
Example 2
PS > Get-TwitterUser -User 1330877955057344513,thedavecarroll,TwitterDev
Return the user information for the 3 specified users.
Example 3
PS > 3234616374,1330877955057344513,'thedavecarroll' | Get-TwitterUser
Return the user information for the specified user.
PARAMETERS
-User
One or more identifiers for a Twitter user. You can provide UserName, Id, or a combination of both as this command will send the appropriate request to the Twitter API.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-IncludeExpansions
Include the pinned Tweet for the returned user(s).
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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
System.String
OUTPUTS
BluebirdPS.APIV2.UserInfo.User
BluebirdPS.APIV2.UserInfo.User[]
NOTES
RELATED LINKS
Api Reference - GET /2/users/me
Api Reference - GET /2/users/by