PS-RiskSense.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# RiskSense requires TLS 1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

# Set the base URI
$uri = 'https://platform.risksense.com/api/v1'

# Get public and private function definition files.
$functions  = Get-ChildItem -Path $PSScriptRoot\*\*.ps1 -ErrorAction SilentlyContinue

# Dot source the files
$functions.ForEach{
    try {. $_.FullName}
    catch {Write-Error -Message "Failed to import function $($_.FullName)"}
}