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 |
Classifies a document into categories.
See: Cloud Natural Language API Reference for language.documents.classifyText
.
Synopsis
- type DocumentsClassifyTextResource = "v1" :> ("documents:classifyText" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ClassifyTextRequest :> Post '[JSON] ClassifyTextResponse))))))))
- documentsClassifyText :: ClassifyTextRequest -> DocumentsClassifyText
- data DocumentsClassifyText
- dctXgafv :: Lens' DocumentsClassifyText (Maybe Xgafv)
- dctUploadProtocol :: Lens' DocumentsClassifyText (Maybe Text)
- dctAccessToken :: Lens' DocumentsClassifyText (Maybe Text)
- dctUploadType :: Lens' DocumentsClassifyText (Maybe Text)
- dctPayload :: Lens' DocumentsClassifyText ClassifyTextRequest
- dctCallback :: Lens' DocumentsClassifyText (Maybe Text)
REST Resource
type DocumentsClassifyTextResource = "v1" :> ("documents:classifyText" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ClassifyTextRequest :> Post '[JSON] ClassifyTextResponse)))))))) Source #
A resource alias for language.documents.classifyText
method which the
DocumentsClassifyText
request conforms to.
Creating a Request
documentsClassifyText Source #
Creates a value of DocumentsClassifyText
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DocumentsClassifyText Source #
Classifies a document into categories.
See: documentsClassifyText
smart constructor.
Instances
Request Lenses
dctUploadProtocol :: Lens' DocumentsClassifyText (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
dctAccessToken :: Lens' DocumentsClassifyText (Maybe Text) Source #
OAuth access token.
dctUploadType :: Lens' DocumentsClassifyText (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
dctPayload :: Lens' DocumentsClassifyText ClassifyTextRequest Source #
Multipart request metadata.
dctCallback :: Lens' DocumentsClassifyText (Maybe Text) Source #
JSONP