Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (15 sloc) 457 Bytes
#!/usr/bin/env python
import os
import sys
import json
import requests
user_id = os.environ['USER_ID']
token = os.environ['TOKEN']
api_url = os.environ.get('PHANTOM_URL', "")
r = requests.get("%s/launchconfigurations" % api_url, auth=(user_id, token))
if r.status_code == 200:
all_lcs = r.json()
sys.exit("Failed to list launch configurations: %s" % r.text)
for lc in all_lcs:
print lc['name']
Jump to Line
Something went wrong with that request. Please try again.