apivoid.psm1
function Invoke-ApiVoid { param ( [string] $Key, [Parameter(ValueFromPipeline)] [string[]] $IP ) begin { $Uri = "https://endpoint.apivoid.com/iprep/v1/pay-as-you-go" } process { foreach ( $ThisIP in $IP ) { $Body = @{ key = $Key ip = $ThisIP } Invoke-RestMethod -Method Get -Uri $Uri -Body $Body -Verbose } } } Export-ModuleMember -Function Invoke-apivoid |