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 |
Detects the language of text within a request.
See: Google Cloud Translation API Reference for language.detections.list
.
Synopsis
- type DetectionsListResource = "language" :> ("translate" :> ("v2" :> ("detect" :> (QueryParams "q" Text :> (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 :> Get '[JSON] DetectionsListResponse))))))))))))
- detectionsList :: [Text] -> DetectionsList
- data DetectionsList
- dlXgafv :: Lens' DetectionsList (Maybe Xgafv)
- dlUploadProtocol :: Lens' DetectionsList (Maybe Text)
- dlPp :: Lens' DetectionsList Bool
- dlAccessToken :: Lens' DetectionsList (Maybe Text)
- dlUploadType :: Lens' DetectionsList (Maybe Text)
- dlQ :: Lens' DetectionsList [Text]
- dlBearerToken :: Lens' DetectionsList (Maybe Text)
- dlCallback :: Lens' DetectionsList (Maybe Text)
REST Resource
type DetectionsListResource = "language" :> ("translate" :> ("v2" :> ("detect" :> (QueryParams "q" Text :> (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 :> Get '[JSON] DetectionsListResponse)))))))))))) Source #
A resource alias for language.detections.list
method which the
DetectionsList
request conforms to.
Creating a Request
:: [Text] | |
-> DetectionsList |
Creates a value of DetectionsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DetectionsList Source #
Detects the language of text within a request.
See: detectionsList
smart constructor.
Instances
Request Lenses
dlUploadProtocol :: Lens' DetectionsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
dlAccessToken :: Lens' DetectionsList (Maybe Text) Source #
OAuth access token.
dlUploadType :: Lens' DetectionsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
dlQ :: Lens' DetectionsList [Text] Source #
The input text upon which to perform language detection. Repeat this parameter to perform language detection on multiple text inputs.
dlBearerToken :: Lens' DetectionsList (Maybe Text) Source #
OAuth bearer token.
dlCallback :: Lens' DetectionsList (Maybe Text) Source #
JSONP