4
我一直在尝试使用PowerShell执行basic authentication with the GitHub Api。以下内容不起作用:使用PowerShell使用GitHub Api进行基本身份验证
> $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"
}
我们如何使用PowerShell和GitHub Api进行基本身份验证?