Get-BirdWeatherGraphQLSpecies
SYNOPSIS
Fetch species by ID or exact scientific name
SYNTAX
ById (Default)
Get-BirdWeatherGraphQLSpecies [-SpeciesId] <string> [-Property <string[]>] [-Raw]
ByScientificName
Get-BirdWeatherGraphQLSpecies -ScientificName <string> [-Property <string[]>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- Get-BWGSpecies
DESCRIPTION
The Get-BirdWeatherGraphQLSpecies cmdlet invokes the species query of the BirdWeather GraphQL API
Fetch species by ID or exact scientific name
By default the following properties are returned, use the Property parameter to select other properties: alpha, alpha6, birdweatherUrl, classification, color, commonName, ebirdCode, ebirdUrl, id, imageCredit, imageLicense, imageLicenseUrl, imageUrl, mlUrl, rangeUrl, scientificName, stationCount, thumbnailUrl, wikipediaUrl
EXAMPLES
EXAMPLE 1
Get-BirdWeatherGraphQLSpecies -SpeciesId '123'
Returns the result of the species query of the BirdWeather GraphQL API
EXAMPLE 2
Get-BirdWeatherGraphQLSpecies -SpeciesId '123' -Property 'alpha', 'alpha6'
Only returns the defined properties
PARAMETERS
-Property
The properties (GraphQL fields) of the Species to return Nested properties are defined with a dot, such as species.commonName Default values: alpha, alpha6, birdweatherUrl, classification, color, commonName, ebirdCode, ebirdUrl, id, imageCredit, imageLicense, imageLicenseUrl, imageUrl, mlUrl, rangeUrl, scientificName, stationCount, thumbnailUrl, wikipediaUrl
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (data & errors) instead of only the requested data
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: ''
-ScientificName
Species scientific name
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByScientificName
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-SpeciesId
Species ID
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Id
ParameterSets:
- Name: ById
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
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
System.String
OUTPUTS
NOTES
GraphQL : Query.species Returns : Species