Documentation
¶
Index ¶
Constants ¶
View Source
const APIBaseURL = "https://api.scryfall.com/cards/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Card ¶
type Card struct {
ID string `json:"id"`
OracleID string `json:"oracle_id"`
MultiverseIDs []int `json:"multiverse_ids"`
MtgoID int `json:"mtgo_id"`
MtgoFoilID int `json:"mtgo_foil_id"`
TcgplayerID int `json:"tcgplayer_id"`
CardmarketID int `json:"cardmarket_id"`
Name string `json:"name"`
Lang string `json:"lang"`
ReleasedAt string `json:"released_at"`
URI string `json:"uri"`
ScryfallURI string `json:"scryfall_uri"`
Layout string `json:"layout"`
HighresImage bool `json:"highres_image"`
ImageStatus string `json:"image_status"`
ImageURIs ImageURIs `json:"image_uris"`
ManaCost string `json:"mana_cost"`
CMC float64 `json:"cmc"`
TypeLine string `json:"type_line"`
OracleText string `json:"oracle_text"`
Power string `json:"power"`
Toughness string `json:"toughness"`
Loyalty string `json:"loyalty"`
Colors []string `json:"colors"`
ColorIdentity []string `json:"color_identity"`
Keywords []string `json:"keywords"`
ProducedMana []string `json:"produced_mana"`
AllParts []RelatedCard `json:"all_parts"`
CardFaces []CardFace `json:"card_faces"`
Legality Legalities `json:"legalities"`
Games []string `json:"games"`
Reserved bool `json:"reserved"`
Foil bool `json:"foil"`
Nonfoil bool `json:"nonfoil"`
Finishes []string `json:"finishes"`
Oversized bool `json:"oversized"`
Promo bool `json:"promo"`
Reprint bool `json:"reprint"`
Variation bool `json:"variation"`
SetID string `json:"set_id"`
Set string `json:"set"`
SetName string `json:"set_name"`
SetType string `json:"set_type"`
SetURI string `json:"set_uri"`
SetSearchURI string `json:"set_search_uri"`
ScryfallSetURI string `json:"scryfall_set_uri"`
RulingsURI string `json:"rulings_uri"`
PrintsSearchURI string `json:"prints_search_uri"`
CollectorNumber string `json:"collector_number"`
Digital bool `json:"digital"`
Rarity string `json:"rarity"`
FlavorText string `json:"flavor_text"`
CardBackID string `json:"card_back_id"`
Artist string `json:"artist"`
ArtistIDs []string `json:"artist_ids"`
IllustrationID string `json:"illustration_id"`
BorderColor string `json:"border_color"`
Frame string `json:"frame"`
FrameEffects []string `json:"frame_effects"`
SecurityStamp string `json:"security_stamp"`
FullArt bool `json:"full_art"`
Textless bool `json:"textless"`
Booster bool `json:"booster"`
StorySpotlight bool `json:"story_spotlight"`
EDHREC_RANK int `json:"edhrec_rank"`
PennyRank int `json:"penny_rank"`
Prices Prices `json:"prices"`
RelatedURIs RelatedURIs `json:"related_uris"`
PurchaseURIs PurchaseURIs `json:"purchase_uris"`
}
func FindCardByID ¶ added in v0.1.2
type CardFace ¶
type CardFace struct {
Name string `json:"name"`
ManaCost string `json:"mana_cost"`
TypeLine string `json:"type_line"`
OracleText string `json:"oracle_text"`
Colors []string `json:"colors"`
Power string `json:"power"`
Toughness string `json:"toughness"`
Loyalty string `json:"loyalty"`
FlavorText string `json:"flavor_text"`
Artist string `json:"artist"`
ArtistID string `json:"artist_id"`
IllustrationID string `json:"illustration_id"`
ImageURIs ImageURIs `json:"image_uris"`
}
type Legalities ¶
type Legalities struct {
Standard string `json:"standard"`
Future string `json:"future"`
Historic string `json:"historic"`
Timeless string `json:"timeless"`
Gladiator string `json:"gladiator"`
Pioneer string `json:"pioneer"`
Modern string `json:"modern"`
Legacy string `json:"legacy"`
Pauper string `json:"pauper"`
Vintage string `json:"vintage"`
Penny string `json:"penny"`
Commander string `json:"commander"`
Oathbreaker string `json:"oathbreaker"`
Standardbrawl string `json:"standardbrawl"`
Brawl string `json:"brawl"`
Alchemy string `json:"alchemy"`
Paupercommander string `json:"paupercommander"`
Duel string `json:"duel"`
Oldschool string `json:"oldschool"`
Premodern string `json:"premodern"`
Predh string `json:"predh"`
}
type PurchaseURIs ¶
type RelatedCard ¶
Click to show internal directories.
Click to hide internal directories.