Last active
October 3, 2017 16:33
-
-
Save ehrnst/f88809ae3255d86d652826d9c8336dd5 to your computer and use it in GitHub Desktop.
Altox WBUS API basic powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function send-altoxCommand { | |
param ( | |
[Parameter(Mandatory = $true)] | |
$command, | |
[Parameter(Mandatory = $true)] | |
$pass, | |
[Parameter(Mandatory = $true)] | |
$email, | |
[Parameter(Mandatory = $true)] | |
$id | |
) | |
$timezone = "+2hour" | |
$uri = "https://altox.ru/track/app_heater.php?cmd=$command&id=$id&email=$email&pass=$pass&timezone=$timezone" | |
Invoke-RestMethod -Method Get -Uri $uri | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment