summaryrefslogtreecommitdiffstats
path: root/extra/push-examples/powershell/index.ps1
blob: 2894e8dd6b103b0fce9f13d3dee7c0b6da374e7e (plain)
1
2
3
4
5
6
7
8
9
# Filename: index.ps1
$pushURL = "https://example.com/api/push/key?status=up&msg=OK&ping="
$interval = 60

while ($true) {
    $res = Invoke-WebRequest -Uri $pushURL
    Write-Host "Pushed!"
    Start-Sleep -Seconds $interval
}