Language Detector

Check

check

you should send (Text: your text ) as form-data


/apitalk/language-detector/

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/language-detector/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CheckApi;

import java.io.File;
import java.util.*;

public class CheckApiExample {

    public static void main(String[] args) {
        
        CheckApi apiInstance = new CheckApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String text = text_example; // String | send your Text
        try {
            language_response result = apiInstance.check(apiecoKey, text);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckApi#check");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CheckApi;

public class CheckApiExample {

    public static void main(String[] args) {
        CheckApi apiInstance = new CheckApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String text = text_example; // String | send your Text
        try {
            language_response result = apiInstance.check(apiecoKey, text);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckApi#check");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *text = text_example; // send your Text

CheckApi *apiInstance = [[CheckApi alloc] init];

// 
[apiInstance checkWith:apiecoKey
    text:text
              completionHandler: ^(language_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LanguageDetector = require('language_detector');

var api = new LanguageDetector.CheckApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var text = text_example; // {String} send your Text


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.check(apiecoKey, text, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class checkExample
    {
        public void main()
        {
            
            var apiInstance = new CheckApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var text = text_example;  // String | send your Text

            try
            {
                // 
                language_response result = apiInstance.check(apiecoKey, text);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CheckApi.check: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CheckApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$text = text_example; // String | send your Text

try {
    $result = $api_instance->check($apiecoKey, $text);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckApi->check: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CheckApi;

my $api_instance = WWW::SwaggerClient::CheckApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $text = text_example; # String | send your Text

eval { 
    my $result = $api_instance->check(apiecoKey => $apiecoKey, text => $text);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckApi->check: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CheckApi()
apiecoKey = apiecoKey_example # String | apikey for use API
text = text_example # String | send your Text

try: 
    # 
    api_response = api_instance.check(apiecoKey, text)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckApi->check: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
Text*
String
send your Text
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON format

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error