Get-BirdWeatherGraphQLSpeciesLatestDetections
SYNOPSIS
Most recent valid detection per station (one per station), newest first
SYNTAX
__AllParameterSets
Get-BirdWeatherGraphQLSpeciesLatestDetections [-SpeciesId] <string> [-Limit <int>]
[-Property <string[]>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- Get-BWGSpeciesLatestDetections
DESCRIPTION
The Get-BirdWeatherGraphQLSpeciesLatestDetections cmdlet invokes the species.latestDetections query of the BirdWeather GraphQL API
Most recent valid detection per station (one per station), newest first
By default the following properties are returned, use the Property parameter to select other properties: behavior, behaviorCode, behaviorConfidence, certainty, confidence, coords.lat, coords.lon, eclipse, id, mode, probability, ref, score, species.id, species.commonName, species.scientificName, speciesId, station.id, station.name, timestamp
EXAMPLES
EXAMPLE 1
Get-BirdWeatherGraphQLSpeciesLatestDetections -SpeciesId '123'
Returns the result of the species.latestDetections query of the BirdWeather GraphQL API
EXAMPLE 2
Get-BirdWeatherGraphQLSpeciesLatestDetections -SpeciesId '123' -Property 'behavior', 'behaviorCode'
Only returns the defined properties
PARAMETERS
-Limit
Maximum number of stations to return (default 20, max 50)
Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Property
The properties (GraphQL fields) of the Detection to return Nested properties are defined with a dot, such as species.commonName Default values: behavior, behaviorCode, behaviorConfidence, certainty, confidence, coords.lat, coords.lon, eclipse, id, mode, probability, ref, score, species.id, species.commonName, species.scientificName, speciesId, station.id, station.name, timestamp
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: ''
-SpeciesId
Species ID
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Id
ParameterSets:
- Name: (All)
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.latestDetections Returns : Detection