Skip to content

Set-TwitterRateLimitWarning

SYNOPSIS

Sets the session setting for the Rate Limit Warning.

SYNTAX

Enable

Set-TwitterRateLimitWarning [-Enable] [<CommonParameters>]

Disable

Set-TwitterRateLimitWarning [-Disable] [<CommonParameters>]

DESCRIPTION

Sets the session setting for the Rate Limit Warning.

If this setting is enabled, a warning message will be displayed for each rate limited API call.

Notes: The warning will be always displayed when the remaining available API calls are five (5) or less. This setting is disabled at the beginning of the session.

EXAMPLES

Example 1

PS > Set-TwitterRateLimitWarning -Enable

Enable the rate limit warning.

Example 2

PS > Set-TwitterRateLimitWarning -Disable

Disable the rate limit warning.

PARAMETERS

-Enable

Enable the rate limit warning.

Type: SwitchParameter
Parameter Sets: Enable
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Disable

Disable the rate limit warning.

Type: SwitchParameter
Parameter Sets: Disable
Aliases:

Required: True
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

Get-TwitterRateLimitWarning