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 |
Network.Google.Resource.Docs.Documents.Get
Description
Gets the latest version of the specified document.
See: Google Docs API Reference for docs.documents.get
.
Synopsis
- type DocumentsGetResource = "v1" :> ("documents" :> (Capture "documentId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "suggestionsViewMode" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Document)))))))))
- documentsGet :: Text -> DocumentsGet
- data DocumentsGet
- dgXgafv :: Lens' DocumentsGet (Maybe Xgafv)
- dgDocumentId :: Lens' DocumentsGet Text
- dgUploadProtocol :: Lens' DocumentsGet (Maybe Text)
- dgAccessToken :: Lens' DocumentsGet (Maybe Text)
- dgUploadType :: Lens' DocumentsGet (Maybe Text)
- dgSuggestionsViewMode :: Lens' DocumentsGet (Maybe Text)
- dgCallback :: Lens' DocumentsGet (Maybe Text)
REST Resource
type DocumentsGetResource = "v1" :> ("documents" :> (Capture "documentId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "suggestionsViewMode" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Document))))))))) Source #
A resource alias for docs.documents.get
method which the
DocumentsGet
request conforms to.
Creating a Request
Arguments
:: Text | |
-> DocumentsGet |
Creates a value of DocumentsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DocumentsGet Source #
Gets the latest version of the specified document.
See: documentsGet
smart constructor.
Instances
Request Lenses
dgDocumentId :: Lens' DocumentsGet Text Source #
The ID of the document to retrieve.
dgUploadProtocol :: Lens' DocumentsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
dgAccessToken :: Lens' DocumentsGet (Maybe Text) Source #
OAuth access token.
dgUploadType :: Lens' DocumentsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
dgSuggestionsViewMode :: Lens' DocumentsGet (Maybe Text) Source #
The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is used.
dgCallback :: Lens' DocumentsGet (Maybe Text) Source #
JSONP