Skip to main content

Jamf School for Deno

Jamf School for Deno is an idiomatic, unofficial API wrapper for Jamf School.

Here’s the docs.

Status

Currently an MVP. Don’t use this yet.

(Unless you only need to restart and wipe devices, it’s great at doing that.)

Features

  • Complete data validation, for maximum safety.
  • Excellent documentation and errors.
  • Consistent API modelled after the web’s document API.
  • Only requires --allow-net=YOUR_URL

Usage

#!/usr/bin/env deno run --allow-net=YOUR_SCHOOL.jamfcloud.com
import * as jamf from "https://deno.land/x/jamf_school@0.1.0/mod.ts";

const client = jamf.createClient({
  id: "YOUR_ID",
  token: "YOUR_API_TOKEN",
  url: "YOUR_SCHOOL.jamfcloud.com",
});

// See the docs for everything clients can do.
const devices = await client.getDevices();