gogol-language-0.2.0: Google Cloud Natural Language SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Language.Documents.AnalyzeSentiment

Contents

Description

Analyzes the sentiment of the provided text.

See: Google Cloud Natural Language API Reference for language.documents.analyzeSentiment.

Synopsis

REST Resource

type DocumentsAnalyzeSentimentResource = "v1" :> ("documents:analyzeSentiment" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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

Eq DocumentsAnalyzeSentiment Source # 
Data DocumentsAnalyzeSentiment Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DocumentsAnalyzeSentiment -> c DocumentsAnalyzeSentiment #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DocumentsAnalyzeSentiment #

toConstr :: DocumentsAnalyzeSentiment -> Constr #

dataTypeOf :: DocumentsAnalyzeSentiment -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DocumentsAnalyzeSentiment) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DocumentsAnalyzeSentiment) #

gmapT :: (forall b. Data b => b -> b) -> DocumentsAnalyzeSentiment -> DocumentsAnalyzeSentiment #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DocumentsAnalyzeSentiment -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DocumentsAnalyzeSentiment -> r #

gmapQ :: (forall d. Data d => d -> u) -> DocumentsAnalyzeSentiment -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DocumentsAnalyzeSentiment -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DocumentsAnalyzeSentiment -> m DocumentsAnalyzeSentiment #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DocumentsAnalyzeSentiment -> m DocumentsAnalyzeSentiment #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DocumentsAnalyzeSentiment -> m DocumentsAnalyzeSentiment #

Show DocumentsAnalyzeSentiment Source # 
Generic DocumentsAnalyzeSentiment Source # 
GoogleRequest DocumentsAnalyzeSentiment Source # 
type Rep DocumentsAnalyzeSentiment Source # 
type Rep DocumentsAnalyzeSentiment = D1 (MetaData "DocumentsAnalyzeSentiment" "Network.Google.Resource.Language.Documents.AnalyzeSentiment" "gogol-language-0.2.0-7nQQ4DzhBFgDY8TcydUvxo" False) (C1 (MetaCons "DocumentsAnalyzeSentiment'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dasXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) (S1 (MetaSel (Just Symbol "_dasUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_dasPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_dasAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dasUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dasPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AnalyzeSentimentRequest))) ((:*:) (S1 (MetaSel (Just Symbol "_dasBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dasCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes DocumentsAnalyzeSentiment Source # 
type Scopes DocumentsAnalyzeSentiment = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ([] Symbol)
type Rs DocumentsAnalyzeSentiment Source # 

Request Lenses

dasUploadProtocol :: Lens' DocumentsAnalyzeSentiment (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

dasUploadType :: Lens' DocumentsAnalyzeSentiment (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").