mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Use least priviledge scope GCS
Remove debug write
This commit is contained in:
parent
74c8ed1613
commit
4c0ea0e1f3
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ public GoogleCloudStorage(OAuth2Info oauth)
|
|||
{
|
||||
googleAuth = new GoogleOAuth2(oauth, this)
|
||||
{
|
||||
Scope = "https://www.googleapis.com/auth/devstorage.full_control"
|
||||
Scope = "https://www.googleapis.com/auth/devstorage.read_write"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ public override UploadResult ShortenURL(string url)
|
|||
|
||||
string requestjson = JsonConvert.SerializeObject(request);
|
||||
result.Response = SendRequest(HttpMethod.POST, "https://firebasedynamiclinks.googleapis.com/v1/shortLinks", requestjson, UploadHelpers.ContentTypeJSON, args);
|
||||
DebugHelper.WriteLine(result.Response);
|
||||
|
||||
FirebaseResponse firebaseResponse = JsonConvert.DeserializeObject<FirebaseResponse>(result.Response);
|
||||
|
||||
if (firebaseResponse != null)
|
||||
|
|
Loading…
Reference in a new issue