While invoking an Invoke-RestMethod
using Powershell like:
Invoke-RestMethod -Method Get -Uri "https://google.com/api/GetData" -Headers $headers
and $headers
being
$headers = @{
Authorization="Secret $username $password"
Content='application/json'
}
What is the format expected for the parameters $username
and $password
?