Celerium.APITCG Module

Description

This module provides a PowerShell wrapper for the APITCG REST API (https://apitcg.com). Browse trading card games (Pokemon, Magic the Gathering, Yu-Gi-Oh!, One Piece, Lorcana, & more), their sets, products (cards, sealed, & accessories), market prices, & price history. Authentication uses a single API key that is stored as a SecureString. Responses are unwrapped automatically, -AllResults pages through large result sets, & the rate limit headers of the API are tracked

Celerium.APITCG

Add-APITCGAPIKey

Sets the API key used to authenticate all API calls

Add-APITCGBaseURI

Sets the base URI for the APITCG API connection

ConvertTo-APITCGQueryString

Converts uri filter parameters into a query string

ConvertTo-APITCGRateLimit

Converts the rate limit headers of a response into a rate limit object

Export-APITCGModuleSettings

Exports the APITCG BaseURI, API key, & JSON configuration information to file

Get-APITCGAPIKey

Gets the APITCG API key

Get-APITCGBaseURI

Shows the APITCG base URI

Get-APITCGHealth

Health check

Get-APITCGHistoryPrice

Price history of a product

Get-APITCGModuleSettings

Gets the saved APITCG configuration settings

Get-APITCGProduct

List products (cards, sealed, accessories) / Get a product by ID

Get-APITCGRateLimit

Gets the last rate limit observed by the module

Get-APITCGResponseHeader

Gets the value of a header from the headers of a web response

Get-APITCGSet

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

Get-APITCGTcg

List all TCGs / Get a TCG by ID

Get-APITCGUriParameter

Gets the query string parameters from a public function

Import-APITCGModuleSettings

Imports the APITCG BaseURI, API key, & JSON configuration information to the current session

Invoke-APITCGRequest

Makes an API request to the APITCG API

Remove-APITCGAPIKey

Removes the API key from the global variables

Remove-APITCGBaseURI

Removes the APITCG base URI global variable

Remove-APITCGModuleSettings

Removes the stored APITCG configuration folder

Test-APITCGAPIKey

Test the APITCG API key