Get-APITCGSet

SYNOPSIS

List the sets of a TCG / Get a set by ID within a TCG

SYNTAX

Index (Default)

Get-APITCGSet [-Tcg] <string> [-SortBy <string>] [-SortOrder <string>] [-Populate <string>] [-Raw]

ById

Get-APITCGSet [-Tcg] <string> [-Id] <string> [-Populate <string>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

Parameter set [ Index ] - The Get-APITCGSet cmdlet invokes the GET method of the /api/{tcg}/sets endpoint (List the sets of a TCG)

Returns all sets/expansions of the given TCG.

Parameter set [ ById ] - The Get-APITCGSet cmdlet invokes the GET method of the /api/{tcg}/sets/{id} endpoint (Get a set by ID within a TCG)

Returns a set by its ‘_id’ within the given TCG.

The list of sets is not paged

EXAMPLES

EXAMPLE 1

Get-APITCGSet -Tcg 'one-piece'

Returns the result of the /api/{tcg}/sets endpoint

EXAMPLE 2

Get-APITCGSet -Tcg 'one-piece' -Id 'one-piece-pillars-of-strength'

Returns the result of the /api/{tcg}/sets/{id} endpoint

PARAMETERS

-Id

Set ID (composed slug).

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

-Populate

If set to ‘tcg’, includes the full TCG document instead of just its ID.

Allowed values: ‘tcg’

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

-Raw

Returns the full API response (success, data, total, & fallback) instead of only the 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: ''

-SortBy

Field to sort the results by.

Default value: name

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

-SortOrder

Sort direction.

Default value: asc

Allowed values: ‘asc’, ‘desc’

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

-Tcg

TCG slug (see the list of available TCGs in the introduction).

Any value is accepted so that new values keep working, tab completion suggests the known values: ‘cardfight-vanguard’, ‘cyberpunk’, ‘digimon’, ‘dragon-ball-super-fusion-world’, ‘dragon-ball-super-masters’, ‘final-fantasy-tcg’, ‘flesh-and-blood’, ‘gundam’, ‘hololive’, ‘lorcana’, ‘magic’, ‘mitos-y-leyendas’, ‘my-little-pony-tcg’, ‘naruto-card-game’, ‘one-piece’, ‘palworld’, ‘pokemon’, ‘riftbound’, ‘star-wars-unlimited’, ‘union-arena’, ‘yugioh’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ById
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
- Name: Index
  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

Endpoint : GET /api/{tcg}/sets Endpoint : GET /api/{tcg}/sets/{id}