getApiLanguagePredict
+Get a list of supported languages
++
/api/language/predict
+ +
Usage and SDK Samples
+ + + +curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost/api/language/predict"
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DefaultApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DefaultApiExample {
+ public static void main(String[] args) {
+
+ // Create an instance of the API class
+ DefaultApi apiInstance = new DefaultApi();
+
+ try {
+ AvailableLanguagesResponse.3de4f90 result = apiInstance.getApiLanguagePredict();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#getApiLanguagePredict");
+ e.printStackTrace();
+ }
+ }
+}
+
+ import org.openapitools.client.api.DefaultApi;
+
+public class DefaultApiExample {
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+
+ try {
+ AvailableLanguagesResponse.3de4f90 result = apiInstance.getApiLanguagePredict();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#getApiLanguagePredict");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+// Create an instance of the API class
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+// Get a list of supported languages
+[apiInstance getApiLanguagePredictWithCompletionHandler:
+ ^(AvailableLanguagesResponse.3de4f90 output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+ var LanguageDetectionService = require('language_detection_service');
+
+// Create an instance of the API class
+var api = new LanguageDetectionService.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getApiLanguagePredict(callback);
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getApiLanguagePredictExample
+ {
+ public void main()
+ {
+
+ // Create an instance of the API class
+ var apiInstance = new DefaultApi();
+
+ try {
+ // Get a list of supported languages
+ AvailableLanguagesResponse.3de4f90 result = apiInstance.getApiLanguagePredict();
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DefaultApi.getApiLanguagePredict: " + e.Message );
+ }
+ }
+ }
+}
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DefaultApi();
+
+try {
+ $result = $api_instance->getApiLanguagePredict();
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->getApiLanguagePredict: ', $e->getMessage(), PHP_EOL;
+}
+?>
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DefaultApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
+
+eval {
+ my $result = $api_instance->getApiLanguagePredict();
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->getApiLanguagePredict: $@\n";
+}
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.DefaultApi()
+
+try:
+ # Get a list of supported languages
+ api_response = api_instance.get_api_language_predict()
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DefaultApi->getApiLanguagePredict: %s\n" % e)
+ extern crate DefaultApi;
+
+pub fn main() {
+
+ let mut context = DefaultApi::Context::default();
+ let result = client.getApiLanguagePredict(&context).wait();
+
+ println!("{:?}", result);
+}
+
+