Skip to content

Get-TwitterUserProfileBanner

SYNOPSIS

Returns a map of the available size variations of the specified user's profile banner.

SYNTAX

Get-TwitterUserProfileBanner [-UserName <String>] [<CommonParameters>]

DESCRIPTION

Returns a map of the available size variations of the specified user's profile banner.

The profile banner data available at each size variant's URL is in PNG format.

NOTE: This command currently returns the raw API response.

EXAMPLES

Example 1

PS > Get-TwitterUserProfileBanner | ForEach-Object sizes
ipad          : @{h=313; w=626; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/ipad}
ipad_retina   : @{h=626; w=1252; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/ipad_retina}
web           : @{h=260; w=520; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/web}
web_retina    : @{h=520; w=1040; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/web_retina}
mobile        : @{h=160; w=320; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/mobile}
mobile_retina : @{h=320; w=640; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/mobile_retina}
300x100       : @{h=100; w=300; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/300x100}
600x200       : @{h=200; w=600; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/600x200}
1500x500      : @{h=500; w=1500; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/1500x500}
1080x360      : @{h=360; w=1080; url=https://pbs.twimg.com/profile_banners/292670084/1600359337/1080x360}

Returns a map of the available size variations of the specified user's profile banner.

PARAMETERS

-UserName

The user name of the Twitter user for which you want to retrieve profile banner details.

If you do not specify a UserName, it will return the profile banner details for the authenticating user.

Type: System.String
Parameter Sets: (All)
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

System.String

OUTPUTS

System.Management.Automation.PSCustomObject

NOTES

Online Version

Api Reference - GET users/profile_banner