Fortune_Tester/report_request_calls.ps1
2026-04-06 13:57:08 +03:00

20 lines
368 B
PowerShell

function GetAllReportRequests {
fortune call GET "reports/requests" | less
}
function DownloadReport {
param(
[Int64]$id
)
fortune call GET "reports/download/$id" | less
}
function GenerateEventIntervalReport {
$report = @{
type="event_interval"
metadata=@{
interval="day"
}
}
fortune call POST "reports/requests" -Body $report
}