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 the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids will not be returned. You can include grid data one of two ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, it is recommended to retrieve only the specific fields of the spreadsheet that you want. To retrieve only subsets of the spreadsheet, use the ranges URL parameter. Multiple ranges can be specified. Limiting the range will return only the portions of the spreadsheet that intersect the requested ranges. Ranges are specified using A1 notation.
See: Google Sheets API Reference for sheets.spreadsheets.get
.
Synopsis
- type SpreadsheetsGetResource = "v4" :> ("spreadsheets" :> (Capture "spreadsheetId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "ranges" Text :> (QueryParam "includeGridData" Bool :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Spreadsheet))))))))))
- spreadsheetsGet :: Text -> SpreadsheetsGet
- data SpreadsheetsGet
- sgXgafv :: Lens' SpreadsheetsGet (Maybe Xgafv)
- sgUploadProtocol :: Lens' SpreadsheetsGet (Maybe Text)
- sgAccessToken :: Lens' SpreadsheetsGet (Maybe Text)
- sgSpreadsheetId :: Lens' SpreadsheetsGet Text
- sgUploadType :: Lens' SpreadsheetsGet (Maybe Text)
- sgRanges :: Lens' SpreadsheetsGet [Text]
- sgIncludeGridData :: Lens' SpreadsheetsGet (Maybe Bool)
- sgCallback :: Lens' SpreadsheetsGet (Maybe Text)
REST Resource
type SpreadsheetsGetResource = "v4" :> ("spreadsheets" :> (Capture "spreadsheetId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "ranges" Text :> (QueryParam "includeGridData" Bool :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Spreadsheet)))))))))) Source #
A resource alias for sheets.spreadsheets.get
method which the
SpreadsheetsGet
request conforms to.
Creating a Request
Creates a value of SpreadsheetsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpreadsheetsGet Source #
Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids will not be returned. You can include grid data one of two ways: * Specify a field mask listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, it is recommended to retrieve only the specific fields of the spreadsheet that you want. To retrieve only subsets of the spreadsheet, use the ranges URL parameter. Multiple ranges can be specified. Limiting the range will return only the portions of the spreadsheet that intersect the requested ranges. Ranges are specified using A1 notation.
See: spreadsheetsGet
smart constructor.
Instances
Request Lenses
sgUploadProtocol :: Lens' SpreadsheetsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sgAccessToken :: Lens' SpreadsheetsGet (Maybe Text) Source #
OAuth access token.
sgSpreadsheetId :: Lens' SpreadsheetsGet Text Source #
The spreadsheet to request.
sgUploadType :: Lens' SpreadsheetsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sgIncludeGridData :: Lens' SpreadsheetsGet (Maybe Bool) Source #
True if grid data should be returned. This parameter is ignored if a field mask was set in the request.
sgCallback :: Lens' SpreadsheetsGet (Maybe Text) Source #
JSONP