在调用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
?