Skip to main content

SDKs

The SDKs use the same API contract as the sandbox. Keep the sandbox key on your server and set the base URL when constructing the client:

TypeScript​

npm install @mirrormingo/sdk
import { MirrorMingo } from "@mirrormingo/sdk";

const client = new MirrorMingo({
apiKey: process.env.MIRRORMINGO_SANDBOX_API_KEY!,
baseUrl: "https://sandbox.api.mirrormingo.com/v1",
});
const exams = await client.exams.list({ exam: "jamb" });

Python​

pip install mirrormingo
from mirrormingo import MirrorMingo

client = MirrorMingo(
api_key=os.environ["MIRRORMINGO_SANDBOX_API_KEY"],
base_url="https://sandbox.api.mirrormingo.com/v1",
)
exams = client.exams.list(exam="jamb")

Java, PHP, Go, and Dart clients use the same base_url and api_key options. See the API reference on this site for endpoint shapes and authentication.