Skip to content

Commit

Permalink
very very dirty hack to fix the issue wrt oauth scopes - brendanhay#143
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhnanda committed Jan 16, 2020
1 parent afed420 commit 52dd608
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ instance GoogleRequest SpreadsheetsBatchUpdate where
type Rs SpreadsheetsBatchUpdate =
BatchUpdateSpreadsheetResponse
type Scopes SpreadsheetsBatchUpdate =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsBatchUpdate'{..}
= go _sbuSpreadsheetId _sbuXgafv _sbuUploadProtocol
_sbuAccessToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ scCallback
instance GoogleRequest SpreadsheetsCreate where
type Rs SpreadsheetsCreate = Spreadsheet
type Scopes SpreadsheetsCreate =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsCreate'{..}
= go _scXgafv _scUploadProtocol _scAccessToken
_scUploadType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,7 @@ sgCallback
instance GoogleRequest SpreadsheetsGet where
type Rs SpreadsheetsGet = Spreadsheet
type Scopes SpreadsheetsGet =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/spreadsheets.readonly"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsGet'{..}
= go _sgSpreadsheetId _sgXgafv _sgUploadProtocol
_sgAccessToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,7 @@ instance GoogleRequest SpreadsheetsValuesAppend where
type Rs SpreadsheetsValuesAppend =
AppendValuesResponse
type Scopes SpreadsheetsValuesAppend =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsValuesAppend'{..}
= go _svaSpreadsheetId _svaRange _svaXgafv
_svaUploadProtocol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ instance GoogleRequest SpreadsheetsValuesBatchClear
type Rs SpreadsheetsValuesBatchClear =
BatchClearValuesResponse
type Scopes SpreadsheetsValuesBatchClear =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsValuesBatchClear'{..}
= go _svbcSpreadsheetId _svbcXgafv
_svbcUploadProtocol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ instance GoogleRequest
BatchClearValuesByDataFilterResponse
type Scopes SpreadsheetsValuesBatchClearByDataFilter
=
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient
SpreadsheetsValuesBatchClearByDataFilter'{..}
= go _svbcbdfSpreadsheetId _svbcbdfXgafv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,7 @@ instance GoogleRequest SpreadsheetsValuesBatchGet
type Rs SpreadsheetsValuesBatchGet =
BatchGetValuesResponse
type Scopes SpreadsheetsValuesBatchGet =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/spreadsheets.readonly"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsValuesBatchGet'{..}
= go _svbgSpreadsheetId _svbgXgafv
_svbgValueRenderOption
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ instance GoogleRequest
type Rs SpreadsheetsValuesBatchGetByDataFilter =
BatchGetValuesByDataFilterResponse
type Scopes SpreadsheetsValuesBatchGetByDataFilter =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient
SpreadsheetsValuesBatchGetByDataFilter'{..}
= go _svbgbdfSpreadsheetId _svbgbdfXgafv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ instance GoogleRequest SpreadsheetsValuesBatchUpdate
type Rs SpreadsheetsValuesBatchUpdate =
BatchUpdateValuesResponse
type Scopes SpreadsheetsValuesBatchUpdate =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsValuesBatchUpdate'{..}
= go _svbuSpreadsheetId _svbuXgafv
_svbuUploadProtocol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ instance GoogleRequest
BatchUpdateValuesByDataFilterResponse
type Scopes SpreadsheetsValuesBatchUpdateByDataFilter
=
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient
SpreadsheetsValuesBatchUpdateByDataFilter'{..}
= go _svbubdfSpreadsheetId _svbubdfXgafv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ svcCallback
instance GoogleRequest SpreadsheetsValuesClear where
type Rs SpreadsheetsValuesClear = ClearValuesResponse
type Scopes SpreadsheetsValuesClear =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsValuesClear'{..}
= go _svcSpreadsheetId _svcRange _svcXgafv
_svcUploadProtocol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,7 @@ svgCallback
instance GoogleRequest SpreadsheetsValuesGet where
type Rs SpreadsheetsValuesGet = ValueRange
type Scopes SpreadsheetsValuesGet =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/spreadsheets.readonly"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsValuesGet'{..}
= go _svgSpreadsheetId _svgRange _svgXgafv
_svgValueRenderOption
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ instance GoogleRequest SpreadsheetsValuesUpdate where
type Rs SpreadsheetsValuesUpdate =
UpdateValuesResponse
type Scopes SpreadsheetsValuesUpdate =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
'["https://www.googleapis.com/auth/drive.file"]
requestClient SpreadsheetsValuesUpdate'{..}
= go _svuSpreadsheetId _svuRange _svuXgafv
_svuUploadProtocol
Expand Down

0 comments on commit 52dd608

Please sign in to comment.