Add-TCGdexBaseURI
SYNOPSIS
Sets the base URI for the TCGdex API connection
SYNTAX
CustomUri (Default)
Add-TCGdexBaseURI [[-BaseURI] <string>] [-Language <string>]
ALIASES
This cmdlet has the following aliases,
- Set-TCGdexBaseURI
DESCRIPTION
The Add-TCGdexBaseURI cmdlet sets the base URI which is used to construct the full URI for all API calls
The language is not part of the base URI, every request adds the language (Add-TCGdexLanguage or the -Language parameter of a function) to the base URI:
<BaseURI>/<Language>/<Endpoint>
https://api.tcgdex.net/v2/en/cards
A base URI that ends with a language, such as the 1.x style https://api.tcgdex.net/v2/en, is also accepted. The language is removed from the base URI & used as the module language
EXAMPLES
EXAMPLE 1
Add-TCGdexBaseURI
The base URI will use the default value https://api.tcgdex.net/v2
EXAMPLE 2
Add-TCGdexBaseURI -BaseURI 'https://gateway.celerium.org/v2' -Language fr
The base URI will use https://gateway.celerium.org/v2 & the data is returned in French
EXAMPLE 3
'https://gateway.celerium.org/v2' | Add-TCGdexBaseURI
The base URI is passed in from the pipeline and will use https://gateway.celerium.org/v2
PARAMETERS
-BaseURI
Sets the base URI for the TCGdex API connection
The URL must use https
Default value: https://api.tcgdex.net/v2
Type: System.String
DefaultValue: https://api.tcgdex.net/v2
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Language
Also sets the language for the TCGdex API connection, see Add-TCGdexLanguage
Use Get-TCGdexAvailableLanguages to list the languages
Type: System.String
DefaultValue: ''
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.String
OUTPUTS
NOTES
N/A