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 |
Creates a spreadsheet, returning the newly created spreadsheet.
See: Google Sheets API Reference for sheets.spreadsheets.create
.
Synopsis
- type SpreadsheetsCreateResource = "v4" :> ("spreadsheets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Spreadsheet :> Post '[JSON] Spreadsheet))))))))
- spreadsheetsCreate :: Spreadsheet -> SpreadsheetsCreate
- data SpreadsheetsCreate
- scXgafv :: Lens' SpreadsheetsCreate (Maybe Xgafv)
- scUploadProtocol :: Lens' SpreadsheetsCreate (Maybe Text)
- scAccessToken :: Lens' SpreadsheetsCreate (Maybe Text)
- scUploadType :: Lens' SpreadsheetsCreate (Maybe Text)
- scPayload :: Lens' SpreadsheetsCreate Spreadsheet
- scCallback :: Lens' SpreadsheetsCreate (Maybe Text)
REST Resource
type SpreadsheetsCreateResource = "v4" :> ("spreadsheets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Spreadsheet :> Post '[JSON] Spreadsheet)))))))) Source #
A resource alias for sheets.spreadsheets.create
method which the
SpreadsheetsCreate
request conforms to.
Creating a Request
Creates a value of SpreadsheetsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpreadsheetsCreate Source #
Creates a spreadsheet, returning the newly created spreadsheet.
See: spreadsheetsCreate
smart constructor.
Instances
Request Lenses
scUploadProtocol :: Lens' SpreadsheetsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
scAccessToken :: Lens' SpreadsheetsCreate (Maybe Text) Source #
OAuth access token.
scUploadType :: Lens' SpreadsheetsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
scPayload :: Lens' SpreadsheetsCreate Spreadsheet Source #
Multipart request metadata.
scCallback :: Lens' SpreadsheetsCreate (Maybe Text) Source #
JSONP