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.detect
.
Synopsis
- type DetectionsDetectResource = "language" :> ("translate" :> ("v2" :> ("detect" :> (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] DetectLanguageRequest :> Post '[JSON] DetectionsListResponse))))))))))))
- detectionsDetect :: DetectLanguageRequest -> DetectionsDetect
- data DetectionsDetect
- ddXgafv :: Lens' DetectionsDetect (Maybe Xgafv)
- ddUploadProtocol :: Lens' DetectionsDetect (Maybe Text)
- ddPp :: Lens' DetectionsDetect Bool
- ddAccessToken :: Lens' DetectionsDetect (Maybe Text)
- ddUploadType :: Lens' DetectionsDetect (Maybe Text)
- ddPayload :: Lens' DetectionsDetect DetectLanguageRequest
- ddBearerToken :: Lens' DetectionsDetect (Maybe Text)
- ddCallback :: Lens' DetectionsDetect (Maybe Text)
REST Resource
type DetectionsDetectResource = "language" :> ("translate" :> ("v2" :> ("detect" :> (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] DetectLanguageRequest :> Post '[JSON] DetectionsListResponse)))))))))))) Source #
A resource alias for language.detections.detect
method which the
DetectionsDetect
request conforms to.
Creating a Request
Creates a value of DetectionsDetect
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DetectionsDetect Source #
Detects the language of text within a request.
See: detectionsDetect
smart constructor.
Instances
Request Lenses
ddUploadProtocol :: Lens' DetectionsDetect (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ddAccessToken :: Lens' DetectionsDetect (Maybe Text) Source #
OAuth access token.
ddUploadType :: Lens' DetectionsDetect (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ddPayload :: Lens' DetectionsDetect DetectLanguageRequest Source #
Multipart request metadata.
ddBearerToken :: Lens' DetectionsDetect (Maybe Text) Source #
OAuth bearer token.
ddCallback :: Lens' DetectionsDetect (Maybe Text) Source #
JSONP