class Moxfield::Api

Extended Modules

Defined in:

moxfield/api.cr:7
moxfield/api.cr:38

Constant Summary

API_CARD_SEARCH_PATH = "/v2/cards/search"
API_DECK_SEARCH_PATH = "/v2/decks/search"
API_HEADERS = HTTP::Headers {"User-Agent" => "PostmanRuntime/7.31.1", "Content-Type" => "application/json; charset=utf-8"}
API_HOST = "api2.moxfield.com"
API_SCHEME = "https"
SORT_ASC = "Ascending"

This is a constant that defines the value for sorting in ascending order.

SORT_DES = "Descending"

This is a constant that defines the value for sorting in descending order.

SORT_UPDATED = "updated"

This is a constant that defines the value for sorting by "updated".

Class Method Summary

Instance Method Summary

Class Method Detail

def self.configure(options : Options = Options.new, &) #

[View source]
def self.configure(options : Options = Options.new) #

[View source]
def self.logger #

[View source]
def self.make_request(path : String, params : String | Nil = nil) #

Make a request with a string URI


[View source]
def self.make_request(uri : URI) #

Make a request with a URI object


[View source]
def self.make_request_uri(path : String, params : String | Nil = nil) : URI #

URI helper function


[View source]

Instance Method Detail

def logger #

[View source]