tcg

package
v0.0.0-...-554ec01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inbound

func Inbound(session *discordgo.Session, message *discordgo.MessageCreate)

Inbound ...

func TokenRefresh

func TokenRefresh()

TokenRefresh attempts to request a new token if we need one

Types

type BearerToken

type BearerToken struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int    `json:"expires_in"`
	UserName    string `json:"userName"`
	Issued      string `json:".issued"`
	Expires     string `json:".expires"`
}

BearerToken represents a valid Bearer Token response from TCG Player API

type ProductResult

type ProductResult struct {
	ProductID int    `json:"productId"`
	Name      string `json:"name"`
	CleanName string `json:"cleanName"`

	ImageURL string `json:"imageUrl"`
	URL      string `json:"url"`

	ExtendedData []ResultExtended `json:"extendedData"`
}

ProductResult ...

type Result

type Result struct {
	Success bool            `json:"success"`
	Errors  []string        `json:"errors"`
	Results []ProductResult `json:"results"`
}

Result ...

type ResultExtended

type ResultExtended struct {
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`
	Value       string `json:"value"`
}

ResultExtended ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL