Get-BirdWeatherAPIKey
SYNOPSIS
Gets the BirdWeather station token or API key
SYNTAX
Index (Default)
Get-BirdWeatherAPIKey [-StationToken] [-AsPlainText] [-Type]
ALIASES
This cmdlet has the following aliases,
- Get-BWAPIKey
DESCRIPTION
The Get-BirdWeatherAPIKey cmdlet gets the BirdWeather credentials from the global variables
By default the GraphQL API key is returned. Use -StationToken to return the station token (REST API) instead
The value is returned as a SecureString unless -AsPlainText is used
EXAMPLES
EXAMPLE 1
Get-BirdWeatherAPIKey
Gets the GraphQL API key and returns it as a SecureString
EXAMPLE 2
Get-BirdWeatherAPIKey -StationToken -AsPlainText
Gets the station token and returns it as plain text
EXAMPLE 3
Get-BirdWeatherAPIKey -StationToken -Type
Returns Station or Admin depending on the type of station token that is set
PARAMETERS
-AsPlainText
Decrypt and return the value in plain text
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-StationToken
Returns the station token (or administrator API token) of the REST API instead of the GraphQL API key
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Type
Returns the type of the station token (Station or Admin) instead of the token
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
N/A