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 |
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
See: Cloud Natural Language API Reference for language.documents.annotateText
.
Synopsis
- type DocumentsAnnotateTextResource = "v1" :> ("documents:annotateText" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AnnotateTextRequest :> Post '[JSON] AnnotateTextResponse))))))))
- documentsAnnotateText :: AnnotateTextRequest -> DocumentsAnnotateText
- data DocumentsAnnotateText
- datXgafv :: Lens' DocumentsAnnotateText (Maybe Xgafv)
- datUploadProtocol :: Lens' DocumentsAnnotateText (Maybe Text)
- datAccessToken :: Lens' DocumentsAnnotateText (Maybe Text)
- datUploadType :: Lens' DocumentsAnnotateText (Maybe Text)
- datPayload :: Lens' DocumentsAnnotateText AnnotateTextRequest
- datCallback :: Lens' DocumentsAnnotateText (Maybe Text)
REST Resource
type DocumentsAnnotateTextResource = "v1" :> ("documents:annotateText" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AnnotateTextRequest :> Post '[JSON] AnnotateTextResponse)))))))) Source #
A resource alias for language.documents.annotateText
method which the
DocumentsAnnotateText
request conforms to.
Creating a Request
documentsAnnotateText Source #
Creates a value of DocumentsAnnotateText
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DocumentsAnnotateText Source #
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
See: documentsAnnotateText
smart constructor.
Instances
Request Lenses
datUploadProtocol :: Lens' DocumentsAnnotateText (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
datAccessToken :: Lens' DocumentsAnnotateText (Maybe Text) Source #
OAuth access token.
datUploadType :: Lens' DocumentsAnnotateText (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
datPayload :: Lens' DocumentsAnnotateText AnnotateTextRequest Source #
Multipart request metadata.
datCallback :: Lens' DocumentsAnnotateText (Maybe Text) Source #
JSONP