Skip to content

Instantly share code, notes, and snippets.

View domenicbrosh's full-sized avatar

Domenic Brosh domenicbrosh

View GitHub Profile
import requests
import getpass
def getoverdue ():
"""Connect to JSS and return nodes which are overude for check-in"""
user = input('Username: ')
passwd = getpass.getpass(prompt='Password: ')
url = 'https://jss.shsu.edu:8443/JSSResource/computergroups/name/Check-In Overdue'
headers = {'Accept': 'application/json'}
req = requests.get(url, headers=headers, auth=(user, passwd))