在调用Invoke-RestMethod使用 Powershell 时,例如:
Invoke-RestMethod -Method Get -Uri "https://google.com/api/GetData" -Headers $headers
和$headers存在
$headers = @{
Authorization="Secret $username $password"
Content='application/json'
}
$username参数和的预期格式是什么$password?