Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
update
  • Loading branch information
Cv-securityIQ committed Jan 9, 2025
1 parent e4793a3 commit ff7a568
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ def main(mytimer: func.TimerRequest) -> None:
companyId_url = f"{url}/v2/WhoAmI"
company_response = requests.get(companyId_url, headers=headers, verify=verify)
if company_response.status_code == 200:
company_data = company_response.json().get("company", {})
companyId = company_data.get("companyId")
company_data_json = company_response.json()
logging.info(f"Company Response : {company_data_json}")
company_data = company_data_json.get("company", {})
companyId = company_data.get("id")
audit_url = f"{url}/V4/Company/{companyId}/SecurityPartners/Register/6"
logging.info(f"Company Id : {companyId}")
audit_response = requests.put(audit_url, headers=headers, verify=verify)
Expand Down
Binary file not shown.

0 comments on commit ff7a568

Please sign in to comment.