Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1018 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 1018 Bytes

MicroMDM Webhook Blueprints

Example webhook listeners for the MicroMDM server in different languages.

These blueprints are meant to show typical actions you might want to perform in response to the webhook functionality of the MicroMDM server. The webhook listener will watch for new devices and when one enrolls or re-enrolls it will ask the device for a list of installed applications.

All of the examples take 3 command line arguements:

  • port - port for the webhook server to listen on (default 80)
  • server-url - public HTTPS url of your MicroMDM server
  • api-key - API Key for your MicroMDM server

Go

cd go
go build -o micromdm-webhook
./micromdm-webhook -server-url https://my-server-url -api-key MySecretAPIKey

Python

cd python
virtualenv env
source env/bin/activate
pip install -r requirements.txt
python micromdm-webhook.py https://my-server-url MySecretAPIKey

NodeJS

cd nodejs
npm install
node micromdm-webhook.js https://my-server-url MySecretAPIKey