@@ -0,0 +1,760 @@
+from __future__ import print_function%0Aimport json%0Aimport sys%0Afrom subprocess import check_output%0Aimport data_helpers%0A%0Adef main():%0A%09if len(sys.argv) %3E= 2:%0A%09%09statustype = sys.argv%5B1%5D%0A%09%09filename = statustype.lower() + '-tickets.json'%0A%09else:%0A%09%09exit(1)%0A%0A%09whd_tickets = 'https://help.stolaf.edu/helpdesk/WebObjects/Helpdesk.woa/ra/Tickets'%0A%09apiKey = '***REMOVED***'%0A%09params = '?style=details&limit=50&qualifier=(statustype.statusTypeName%253D%2527'+statustype.title()+'%2527)&apiKey='+apiKey%0A%0A%09if not data_helpers.needs_reload('data/' + filename, if_minutes_since_last_load=1):%0A%09%09return %22%22%0A%0A%09tickets = check_output('curl --silent %22%25s%22' %25 (whd_tickets+params), shell=True)%0A%0A%09data_helpers.save_data('data/'+filename, json.loads(tickets))%0A%0Aif __name__ == '__main__':%0A%09main()%0A

Make a getTickets python script