gogol-commentanalyzer-0.5.0: Google Perspective Comment Analyzer 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.CommentAnalyzer.Comments.Analyze

Contents

Description

Analyzes the provided text and returns scores for requested attributes.

See: Perspective Comment Analyzer API Reference for commentanalyzer.comments.analyze.

Synopsis

REST Resource

type CommentsAnalyzeResource = "v1alpha1" :> ("comments:analyze" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AnalyzeCommentRequest :> Post '[JSON] AnalyzeCommentResponse)))))))) Source #

A resource alias for commentanalyzer.comments.analyze method which the CommentsAnalyze request conforms to.

Creating a Request

commentsAnalyze Source #

Creates a value of CommentsAnalyze with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CommentsAnalyze Source #

Analyzes the provided text and returns scores for requested attributes.

See: commentsAnalyze smart constructor.

Instances
Eq CommentsAnalyze Source # 
Instance details

Defined in Network.Google.Resource.CommentAnalyzer.Comments.Analyze

Data CommentsAnalyze Source # 
Instance details

Defined in Network.Google.Resource.CommentAnalyzer.Comments.Analyze

Methods

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

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

toConstr :: CommentsAnalyze -> Constr #

dataTypeOf :: CommentsAnalyze -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CommentsAnalyze Source # 
Instance details

Defined in Network.Google.Resource.CommentAnalyzer.Comments.Analyze

Generic CommentsAnalyze Source # 
Instance details

Defined in Network.Google.Resource.CommentAnalyzer.Comments.Analyze

Associated Types

type Rep CommentsAnalyze :: Type -> Type #

GoogleRequest CommentsAnalyze Source # 
Instance details

Defined in Network.Google.Resource.CommentAnalyzer.Comments.Analyze

Associated Types

type Rs CommentsAnalyze :: Type #

type Scopes CommentsAnalyze :: [Symbol] #

type Rep CommentsAnalyze Source # 
Instance details

Defined in Network.Google.Resource.CommentAnalyzer.Comments.Analyze

type Rep CommentsAnalyze = D1 (MetaData "CommentsAnalyze" "Network.Google.Resource.CommentAnalyzer.Comments.Analyze" "gogol-commentanalyzer-0.5.0-8SuTksTsIruKQ8nHrD8kVJ" False) (C1 (MetaCons "CommentsAnalyze'" PrefixI True) ((S1 (MetaSel (Just "_caXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_caUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_caAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_caUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_caPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AnalyzeCommentRequest) :*: S1 (MetaSel (Just "_caCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes CommentsAnalyze Source # 
Instance details

Defined in Network.Google.Resource.CommentAnalyzer.Comments.Analyze

type Scopes CommentsAnalyze = "https://www.googleapis.com/auth/userinfo.email" ': ([] :: [Symbol])
type Rs CommentsAnalyze Source # 
Instance details

Defined in Network.Google.Resource.CommentAnalyzer.Comments.Analyze

Request Lenses

caUploadProtocol :: Lens' CommentsAnalyze (Maybe Text) Source #

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

caUploadType :: Lens' CommentsAnalyze (Maybe Text) Source #

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