Http
Table of Contents
Classes
- Endpoint
- The route table for the MTGJSON v5 API — one constant per file the API
serves under `https://mtgjson.com/api/v5/`, with `:param` placeholders
bound via {@see EndpointTrait}. Same mechanics as DiscordPHP's own
`Endpoint`, pointed at `mtgjson.com`.
- Http
- HTTP client for the MTGJSON v5 API, built the same way DiscordPHP talks to
`discord.com` (buckets, driver, retry) but pointed at
`mtgjson.com/api/v5`. The API is read-only and unauthenticated, so no token
is required. Responses are MTGJSON's `{"meta": {...}, "data": ...}`
wrapper, decoded.
- Request
- A single queued HTTP request against the MTG API. Identical in behaviour to
the DiscordPHP request it extends; it exists only so MTG transport code
depends on an MTG-owned type.