Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns a range of values from a spreadsheet. The caller must specify the spreadsheet ID and a range.
See: Google Sheets API Reference for sheets.spreadsheets.values.get
.
Synopsis
- type SpreadsheetsValuesGetResource = "v4" :> ("spreadsheets" :> (Capture "spreadsheetId" Text :> ("values" :> (Capture "range" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "valueRenderOption" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "dateTimeRenderOption" Text :> (QueryParam "majorDimension" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ValueRange)))))))))))))
- spreadsheetsValuesGet :: Text -> Text -> SpreadsheetsValuesGet
- data SpreadsheetsValuesGet
- svgXgafv :: Lens' SpreadsheetsValuesGet (Maybe Xgafv)
- svgValueRenderOption :: Lens' SpreadsheetsValuesGet (Maybe Text)
- svgUploadProtocol :: Lens' SpreadsheetsValuesGet (Maybe Text)
- svgAccessToken :: Lens' SpreadsheetsValuesGet (Maybe Text)
- svgSpreadsheetId :: Lens' SpreadsheetsValuesGet Text
- svgUploadType :: Lens' SpreadsheetsValuesGet (Maybe Text)
- svgRange :: Lens' SpreadsheetsValuesGet Text
- svgDateTimeRenderOption :: Lens' SpreadsheetsValuesGet (Maybe Text)
- svgMajorDimension :: Lens' SpreadsheetsValuesGet (Maybe Text)
- svgCallback :: Lens' SpreadsheetsValuesGet (Maybe Text)
REST Resource
type SpreadsheetsValuesGetResource = "v4" :> ("spreadsheets" :> (Capture "spreadsheetId" Text :> ("values" :> (Capture "range" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "valueRenderOption" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "dateTimeRenderOption" Text :> (QueryParam "majorDimension" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ValueRange))))))))))))) Source #
A resource alias for sheets.spreadsheets.values.get
method which the
SpreadsheetsValuesGet
request conforms to.
Creating a Request
spreadsheetsValuesGet Source #
Creates a value of SpreadsheetsValuesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpreadsheetsValuesGet Source #
Returns a range of values from a spreadsheet. The caller must specify the spreadsheet ID and a range.
See: spreadsheetsValuesGet
smart constructor.
Instances
Request Lenses
svgValueRenderOption :: Lens' SpreadsheetsValuesGet (Maybe Text) Source #
How values should be represented in the output. The default render option is ValueRenderOption.FORMATTED_VALUE.
svgUploadProtocol :: Lens' SpreadsheetsValuesGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
svgAccessToken :: Lens' SpreadsheetsValuesGet (Maybe Text) Source #
OAuth access token.
svgSpreadsheetId :: Lens' SpreadsheetsValuesGet Text Source #
The ID of the spreadsheet to retrieve data from.
svgUploadType :: Lens' SpreadsheetsValuesGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
svgDateTimeRenderOption :: Lens' SpreadsheetsValuesGet (Maybe Text) Source #
How dates, times, and durations should be represented in the output. This is ignored if value_render_option is FORMATTED_VALUE. The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
svgMajorDimension :: Lens' SpreadsheetsValuesGet (Maybe Text) Source #
The major dimension that results should use. For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then requesting `range=A1:B2,majorDimension=ROWS` will return `[[1,2],[3,4]]`, whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return `[[1,3],[2,4]]`.
svgCallback :: Lens' SpreadsheetsValuesGet (Maybe Text) Source #
JSONP