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進行基本身份驗證?