This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author: Jake Garrison | |
| # Date: 2023-03-29 | |
| # Description: This script fetches devices from the Mosyle API and processes it to help us in creating our managment fee reports. It can also be used to audit Mosyle licenses to compaire with current billing. | |
| # This script requires the Mosyle API token, Mosyle API URL, Mosyle API User, and Mosyle API Password to be set. It also requires the tabulate module to be installed. You can install it with pip install tabulate (or pip3 install tabulate) | |
| # THis is a simplified version of our script primarly aimed at helping other companies perform a license audit. | |
| import base64 | |
| import requests | |
| import json | |
| from sys import exit |