I have been trying to do basic authentication with the GitHub Api with PowerShell. The following do not work:
> $cred = get-credential
# type username and password at prompt
> invoke-webrequest -uri https://api.github.com/user -credential $cred
Invoke-WebRequest : {
"message":"Requires authentication",
"documentation_url":"https://developer.github.com/v3"
}
How do we do basic authentication using PowerShell with the GitHub Api?