Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config.conf
9 changes: 6 additions & 3 deletions apiget.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
# This should be a lot simpler than it is, but none of the oath2
# modules seem to work well, so we do it by hand here.
#
clientid = 'XXXXXXXX'
clientsecret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
host = 'api.cloudpassage.com'

# This information is findable at https://portal.cloudpassage.com/settings/users
config ={}
execfile("config.conf",config)
clientid = config['clientid'] #these must be defined in config.conf
clientsecret = config['clientsecret'] #these must be defined in config.conf
host = config['host']

import urllib
import httplib
Expand Down
12 changes: 12 additions & 0 deletions config.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'''
Your account's Halo ID and Secret Key are findable here: https://portal.cloudpassage.com/settings/users

Variables:
clientid: API Key ID
clientsecret: API Secret Key
host: API host
'''

clientid = ''
clientsecret = ''
host = 'api.cloudpassage.com'