gogol-translate-0.0.1: Google Translate SDK.

Copyright(c) 2015 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)))))))) Source

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

Creating a Request

translationsList Source

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:

Request Lenses

tlQ :: Lens' TranslationsList [Text] Source

The text to translate

tlSource :: Lens' TranslationsList (Maybe Text) Source

The source language of the text

tlCid :: Lens' TranslationsList [Text] Source

The customization id for translate

tlTarget :: Lens' TranslationsList Text Source

The target language into which the text should be translated