functions/Get-ZGVersion.ps1
|
function Get-ZGVersion { param () $response = Invoke-ZGRequest -Method "POST" -Body @{ "jsonrpc" = "2.0" "method" = "apiinfo.version" "params" = @{} "auth" = $script:RequestAuth "id" = $script:RequestID } return $response.result } |