Chubb script

This commit is contained in:
Norm Rasmussen
2024-09-09 18:11:27 -04:00
parent 400af7ba31
commit 1739cacd10
2 changed files with 24 additions and 19 deletions

View File

@ -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):