Skip to content

Instantly share code, notes, and snippets.

@letsbondiway
letsbondiway / get_expiring_ws1_apps.py
Last active February 17, 2020 18:18
A python utility which can be run from command line to get list of already expired apps and list of apps to expire in coming n days on Workspace One.
# !/usr/bin/env python
import argparse
import requests
import json
from datetime import datetime, timedelta
def handle_response(response, expected_code):
if response.status_code != expected_code:
print('Status:', response.status_code, 'Headers:',