This file contains 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
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)) |