gogol-translate-0.3.0: Google Translate 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.Translations.List

Contents

Description

Returns text translations from one language to another.

See: Translate API Reference for language.translations.list.

Synopsis

REST Resource

type TranslationsListResource = "language" :> ("translate" :> ("v2" :> (QueryParams "q" Text :> (QueryParam "target" Text :> (QueryParam "format" TranslationsListFormat :> (QueryParam "source" Text :> (QueryParams "cid" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] TranslationsListResponse)))))))) #

A resource alias for language.translations.list method which the TranslationsList request conforms to.

Creating a Request

translationsList #

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

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

data TranslationsList #

Returns text translations from one language to another.

See: translationsList smart constructor.

Instances

Eq TranslationsList # 
Data TranslationsList # 

Methods

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

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

toConstr :: TranslationsList -> Constr #

dataTypeOf :: TranslationsList -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TranslationsList # 
Generic TranslationsList # 
GoogleRequest TranslationsList # 
type Rep TranslationsList # 
type Rep TranslationsList = D1 (MetaData "TranslationsList" "Network.Google.Resource.Language.Translations.List" "gogol-translate-0.3.0-IBioxGbpUp47H1hrbpYhki" False) (C1 (MetaCons "TranslationsList'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tlFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TranslationsListFormat))) (S1 (MetaSel (Just Symbol "_tlQ") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_tlSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_tlCid") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_tlTarget") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes TranslationsList # 
type Rs TranslationsList # 

Request Lenses

tlQ :: Lens' TranslationsList [Text] #

The text to translate

tlSource :: Lens' TranslationsList (Maybe Text) #

The source language of the text

tlCid :: Lens' TranslationsList [Text] #

The customization id for translate

tlTarget :: Lens' TranslationsList Text #

The target language into which the text should be translated