Changed a github api query to use credentials (quota problem)

This commit is contained in:
lukeIam committed 2015-12-06 21:23:11 +01:00
1 parent 8782ac649e
commit 5f2c341216
1 file changed
+5 -1
+5 -1
View File
@@ -9,7 +9,11 @@ else{
$getRelaseInfoParams = @{
Uri = "https://api.github.com/repos/Vocaluxe/Vocaluxe/releases/tags/$targetTag";
Method = 'GET';
Method = 'GET';
Headers = @{
Authorization = 'Basic ' + [Convert]::ToBase64String(
[Text.Encoding]::ASCII.GetBytes($Env:GitHubKey + ":x-oauth-basic"));
}
}
try{
$result = Invoke-RestMethod @getRelaseInfoParams