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 |
Analyzes the sentiment of the provided text.
See: Cloud Natural Language API Reference for language.documents.analyzeSentiment
.
Synopsis
- type DocumentsAnalyzeSentimentResource = "v1" :> ("documents:analyzeSentiment" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AnalyzeSentimentRequest :> Post '[JSON] AnalyzeSentimentResponse))))))))
- documentsAnalyzeSentiment :: AnalyzeSentimentRequest -> DocumentsAnalyzeSentiment
- data DocumentsAnalyzeSentiment
- dasXgafv :: Lens' DocumentsAnalyzeSentiment (Maybe Xgafv)
- dasUploadProtocol :: Lens' DocumentsAnalyzeSentiment (Maybe Text)
- dasAccessToken :: Lens' DocumentsAnalyzeSentiment (Maybe Text)
- dasUploadType :: Lens' DocumentsAnalyzeSentiment (Maybe Text)
- dasPayload :: Lens' DocumentsAnalyzeSentiment AnalyzeSentimentRequest
- dasCallback :: Lens' DocumentsAnalyzeSentiment (Maybe Text)
REST Resource
type DocumentsAnalyzeSentimentResource = "v1" :> ("documents:analyzeSentiment" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AnalyzeSentimentRequest :> Post '[JSON] AnalyzeSentimentResponse)))))))) Source #
A resource alias for language.documents.analyzeSentiment
method which the
DocumentsAnalyzeSentiment
request conforms to.
Creating a Request
documentsAnalyzeSentiment Source #
Creates a value of DocumentsAnalyzeSentiment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DocumentsAnalyzeSentiment Source #
Analyzes the sentiment of the provided text.
See: documentsAnalyzeSentiment
smart constructor.
Instances
Request Lenses
dasUploadProtocol :: Lens' DocumentsAnalyzeSentiment (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
dasAccessToken :: Lens' DocumentsAnalyzeSentiment (Maybe Text) Source #
OAuth access token.
dasUploadType :: Lens' DocumentsAnalyzeSentiment (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
dasPayload :: Lens' DocumentsAnalyzeSentiment AnalyzeSentimentRequest Source #
Multipart request metadata.
dasCallback :: Lens' DocumentsAnalyzeSentiment (Maybe Text) Source #
JSONP