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 |
Appends values to a spreadsheet. The input range is used to search for existing data and find a "table" within that range. Values will be appended to the next row of the table, starting with the first column of the table. See the guide and sample code for specific details of how tables are detected and data is appended. The caller must specify the spreadsheet ID, range, and a valueInputOption. The `valueInputOption` only controls how the input data will be added to the sheet (column-wise or row-wise), it does not influence what cell the data starts being written to.
See: Google Sheets API Reference for sheets.spreadsheets.values.append
.
Synopsis
- type SpreadsheetsValuesAppendResource = "v4" :> ("spreadsheets" :> (Capture "spreadsheetId" Text :> ("values" :> (CaptureMode "range" "append" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "valueInputOption" Text :> (QueryParam "insertDataOption" Text :> (QueryParam "includeValuesInResponse" Bool :> (QueryParam "responseDateTimeRenderOption" Text :> (QueryParam "callback" Text :> (QueryParam "responseValueRenderOption" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ValueRange :> Post '[JSON] AppendValuesResponse))))))))))))))))
- spreadsheetsValuesAppend :: Text -> ValueRange -> Text -> SpreadsheetsValuesAppend
- data SpreadsheetsValuesAppend
- svaXgafv :: Lens' SpreadsheetsValuesAppend (Maybe Xgafv)
- svaUploadProtocol :: Lens' SpreadsheetsValuesAppend (Maybe Text)
- svaAccessToken :: Lens' SpreadsheetsValuesAppend (Maybe Text)
- svaSpreadsheetId :: Lens' SpreadsheetsValuesAppend Text
- svaUploadType :: Lens' SpreadsheetsValuesAppend (Maybe Text)
- svaValueInputOption :: Lens' SpreadsheetsValuesAppend (Maybe Text)
- svaPayload :: Lens' SpreadsheetsValuesAppend ValueRange
- svaInsertDataOption :: Lens' SpreadsheetsValuesAppend (Maybe Text)
- svaRange :: Lens' SpreadsheetsValuesAppend Text
- svaIncludeValuesInResponse :: Lens' SpreadsheetsValuesAppend (Maybe Bool)
- svaResponseDateTimeRenderOption :: Lens' SpreadsheetsValuesAppend (Maybe Text)
- svaCallback :: Lens' SpreadsheetsValuesAppend (Maybe Text)
- svaResponseValueRenderOption :: Lens' SpreadsheetsValuesAppend (Maybe Text)
REST Resource
type SpreadsheetsValuesAppendResource = "v4" :> ("spreadsheets" :> (Capture "spreadsheetId" Text :> ("values" :> (CaptureMode "range" "append" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "valueInputOption" Text :> (QueryParam "insertDataOption" Text :> (QueryParam "includeValuesInResponse" Bool :> (QueryParam "responseDateTimeRenderOption" Text :> (QueryParam "callback" Text :> (QueryParam "responseValueRenderOption" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ValueRange :> Post '[JSON] AppendValuesResponse)))))))))))))))) Source #
A resource alias for sheets.spreadsheets.values.append
method which the
SpreadsheetsValuesAppend
request conforms to.
Creating a Request
spreadsheetsValuesAppend Source #
Creates a value of SpreadsheetsValuesAppend
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpreadsheetsValuesAppend Source #
Appends values to a spreadsheet. The input range is used to search for existing data and find a "table" within that range. Values will be appended to the next row of the table, starting with the first column of the table. See the guide and sample code for specific details of how tables are detected and data is appended. The caller must specify the spreadsheet ID, range, and a valueInputOption. The `valueInputOption` only controls how the input data will be added to the sheet (column-wise or row-wise), it does not influence what cell the data starts being written to.
See: spreadsheetsValuesAppend
smart constructor.
Instances
Request Lenses
svaUploadProtocol :: Lens' SpreadsheetsValuesAppend (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
svaAccessToken :: Lens' SpreadsheetsValuesAppend (Maybe Text) Source #
OAuth access token.
svaSpreadsheetId :: Lens' SpreadsheetsValuesAppend Text Source #
The ID of the spreadsheet to update.
svaUploadType :: Lens' SpreadsheetsValuesAppend (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
svaValueInputOption :: Lens' SpreadsheetsValuesAppend (Maybe Text) Source #
How the input data should be interpreted.
svaPayload :: Lens' SpreadsheetsValuesAppend ValueRange Source #
Multipart request metadata.
svaInsertDataOption :: Lens' SpreadsheetsValuesAppend (Maybe Text) Source #
How the input data should be inserted.
svaRange :: Lens' SpreadsheetsValuesAppend Text Source #
The A1 notation of a range to search for a logical table of data. Values will be appended after the last row of the table.
svaIncludeValuesInResponse :: Lens' SpreadsheetsValuesAppend (Maybe Bool) Source #
Determines if the update response should include the values of the cells that were appended. By default, responses do not include the updated values.
svaResponseDateTimeRenderOption :: Lens' SpreadsheetsValuesAppend (Maybe Text) Source #
Determines how dates, times, and durations in the response should be rendered. This is ignored if response_value_render_option is FORMATTED_VALUE. The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
svaCallback :: Lens' SpreadsheetsValuesAppend (Maybe Text) Source #
JSONP
svaResponseValueRenderOption :: Lens' SpreadsheetsValuesAppend (Maybe Text) Source #
Determines how values in the response should be rendered. The default render option is ValueRenderOption.FORMATTED_VALUE.