public ServiceCall < IdentifiedLanguages > identify ( IdentifyOptions identifyOptions ) { Validator . notNull ( identifyOptions , "identifyOptions cannot be null" ) ; String [ ] pathSegments = { "v3/identify" } ; RequestBuilder builder = RequestBuilder . post ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "language_translator" , "v3" , "identify" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; builder . bodyContent ( identifyOptions . text ( ) , "text/plain" ) ; return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getObject ( IdentifiedLanguages . class ) ) ; }
Identify language .