Forum Discussion
4 years ago
$Username = '##ddbinfoweb.user##'
$PasswordRaw = '##ddbinfoweb.pass##'
$Bytes = [System.Text.Encoding]::Unicode.GetBytes($PasswordRaw)
$Password = [Convert]::ToBase64String($Bytes)
$Body = @{username=$Username;password=$Password}
$headers = @{
Accept = 'application/json'
'Content-Type' = 'application/json'
}
$username = "appUser"
$password = "base64 encodedPassword"
$body = @{username=$username;password=$password;}
$response = Invoke-RestMethod 'https://localhost/webconsole/api/Login' -Method 'POST' -Headers $headers -Body $($body | ConvertTo-Json)
$token = $response | Select-Object -ExpandProperty token
$headers = @{
Authtoken = $token
Accept = 'application/json'
}
$response = Invoke-RestMethod 'https://localhost/webconsole/api/DDBInformation/8' -Method 'GET' -Headers $headers
$response.dedupDBInfo.subStoreList.avgQITime -gt "1400"
to position on very top?
Related Content
- 11 months ago
- 8 months ago
- 2 years ago