class Moxfield::Api
- Moxfield::Api
- Reference
- Object
Extended Modules
Defined in:
moxfield/api.cr:7moxfield/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
- .configure(options : Options = Options.new, &)
- .configure(options : Options = Options.new)
- .logger
-
.make_request(path : String, params : String | Nil = nil)
Make a request with a string URI
-
.make_request(uri : URI)
Make a request with a URI object
-
.make_request_uri(path : String, params : String | Nil = nil) : URI
URI helper function
Instance Method Summary
Class Method Detail
def self.make_request(path : String, params : String | Nil = nil)
#
Make a request with a string URI