Skip to content

Test-TwitterAuthentication

SYNOPSIS

The command Test-TwitterAuthentication is used to validate the user's credentials.

SYNTAX

Test-TwitterAuthentication [-BearerToken] [<CommonParameters>]

DESCRIPTION

The command Test-TwitterAuthentication is used to validate the user's credentials.

It will test the user's OAuth 1.0a credentials, or, by using the BearerToken switch, will test the user's OAuth 2 bearer token.

This command will update the BluebirdPS configuration property AuthValidationDate with the current date and then Export-BluebirdPSConfiguration.

EXAMPLES

Example 1

PS > Test-TwitterAuthentication

Returns true if the user's OAuth 1.0a credentials are valid, otherwise it will return false.

Example 2

PS > Test-TwitterAuthentication -BearerToken

Returns true if the user's OAuth 2.0 bearer token is valid, otherwise it will return false.

PARAMETERS

-BearerToken

Instructs the command to test the user's OAuth 2.0 bearer token.

Type: SwitchParameter
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

None

OUTPUTS

System.Boolean

NOTES

Online Version

Api Reference - GET account/verify_credentials