Chubb script
This commit is contained in:
@ -7,13 +7,13 @@ import Apikeys
|
||||
import time
|
||||
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
APIKEY = Apikeys.BLOOMERANG
|
||||
APIKEY = Apikeys.CHUBB
|
||||
HEADERS = {
|
||||
"accept": "application/json",
|
||||
"X-Api-Key": APIKEY,
|
||||
}
|
||||
BASEURL = "https://api.northpass.com/v2/"
|
||||
IMPORTFILE = "/Users/normrasmussen/Downloads/bloomberg-vms-invite.csv"
|
||||
IMPORTFILE = "/Users/normrasmussen/Downloads/cisa-092024.csv"
|
||||
|
||||
|
||||
def bulk_invite_and_group():
|
||||
@ -60,9 +60,9 @@ def bulk_invite_and_group():
|
||||
response = requests.post(url, headers=HEADERS, json=payload)
|
||||
print(f"Completed. Status code is {response.status_code}")
|
||||
print(response.text)
|
||||
# print("Running add props from func...")
|
||||
# time.sleep(3)
|
||||
# add_props_from_func(people, data, group)
|
||||
print("Running add props from func...")
|
||||
time.sleep(3)
|
||||
add_props_from_func(people, data, group)
|
||||
|
||||
|
||||
def add_props_from_func(people, data, group):
|
||||
|
||||
Reference in New Issue
Block a user