Created
January 12, 2020 18:15
-
-
Save AlexKorovyansky/c1e4d0c8fa7af8116ad5edd3c2e17856 to your computer and use it in GitHub Desktop.
Revisions
-
AlexKorovyansky created this gist
Jan 12, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ final _credentials = new ServiceAccountCredentials.fromJson(r''' { "private_key_id": "***", "private_key": "***", "client_email": "***", "client_id": "***", "type": "***" } '''); const _SCOPES = const [SheetsApi.SpreadsheetsScope]; clientViaServiceAccount(_credentials, _SCOPES).then((httpClient) { var sheetsApi = new SheetsApi(httpClient); sheetsApi.spreadsheets.values.append( ValueRange.fromJson({"values": [["QR", "Авангард", "цвет формы", "#игрока", "фамилия игрока"]]}), "<spreadsheet_id", "A1:Z998", valueInputOption: "USER_ENTERED").then((response){ print('it works!'); }); });