Get-PokePokemonEncounter

SYNOPSIS

Gets Pokemon location areas from PokeAPI

SYNTAX

ById (Default)

Get-PokePokemonEncounter -Id <int> [-NoCache]

ByName

Get-PokePokemonEncounter -Name <string> [-NoCache]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Get-PokePokemonEncounter cmdlet gets Pokemon location areas from PokeAPI

Pokemon Location Areas are areas where Pokemon can be found.

EXAMPLES

EXAMPLE 1

Get-PokePokemonEncounter -Id 25

Gets the Pokemon location area with the defined id

EXAMPLE 2

Get-PokePokemonEncounter -Name pikachu

Gets the Pokemon location area with the defined name

PARAMETERS

-Id

Defines id of the resource

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ById
  Position: Named
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Name

Defines name of the resource

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByName
  Position: Named
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-NoCache

Bypasses the in-memory response cache and requests the resource from PokeAPI

By default successful responses are cached for one hour

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

System.Int32

System.String

OUTPUTS

System.Management.Automation.PSCustomObject

Getting a resource by Id or Name returns the [ PokemonEncounterResponse[] ] schema from the PokeAPI OpenAPI spec

NOTES

Endpoint : GET /pokemon/{id}/encounters Endpoint : GET /pokemon/{name}/encounters