Http
Table of Contents
Classes
- Endpoint
- The route table for the "Magic: The Gathering Developers" API — one constant
per endpoint (`cards`, `sets`, `sets/:id/booster`, `types`, `formats`, …),
with `:param` placeholders bound via {@see EndpointTrait}. Same mechanics as
DiscordPHP's own `Endpoint`, pointed at `api.magicthegathering.io`.
- Http
- HTTP client for the "Magic: The Gathering Developers" REST API, built the
same way DiscordPHP talks to `discord.com` (rate-limit buckets, driver,
retry) but pointed at `api.magicthegathering.io`. The API is read-only and
unauthenticated, so no token is required.
- 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.