collectInfo
get some informations about a Text
/apitalk/regex/CollectInfo/Phrase
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/apitalk/regex/CollectInfo/Phrase"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CollectInfoApi;
import java.io.File;
import java.util.*;
public class CollectInfoApiExample {
public static void main(String[] args) {
CollectInfoApi apiInstance = new CollectInfoApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String phrase = phrase_example; // String | your text
try {
CollectInfo_response result = apiInstance.collectInfo(apiecoKey, phrase);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectInfoApi#collectInfo");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CollectInfoApi;
public class CollectInfoApiExample {
public static void main(String[] args) {
CollectInfoApi apiInstance = new CollectInfoApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String phrase = phrase_example; // String | your text
try {
CollectInfo_response result = apiInstance.collectInfo(apiecoKey, phrase);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CollectInfoApi#collectInfo");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *phrase = phrase_example; // your text
CollectInfoApi *apiInstance = [[CollectInfoApi alloc] init];
// get some informations about a Text
[apiInstance collectInfoWith:apiecoKey
phrase:phrase
completionHandler: ^(CollectInfo_response output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var RegExApi = require('reg_ex_api');
var api = new RegExApi.CollectInfoApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var phrase = phrase_example; // {String} your text
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.collectInfo(apiecoKey, phrase, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class collectInfoExample
{
public void main()
{
var apiInstance = new CollectInfoApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API
var phrase = phrase_example; // String | your text
try
{
// get some informations about a Text
CollectInfo_response result = apiInstance.collectInfo(apiecoKey, phrase);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectInfoApi.collectInfo: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CollectInfoApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$phrase = phrase_example; // String | your text
try {
$result = $api_instance->collectInfo($apiecoKey, $phrase);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CollectInfoApi->collectInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CollectInfoApi;
my $api_instance = WWW::SwaggerClient::CollectInfoApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $phrase = phrase_example; # String | your text
eval {
my $result = $api_instance->collectInfo(apiecoKey => $apiecoKey, phrase => $phrase);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CollectInfoApi->collectInfo: $@\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.CollectInfoApi()
apiecoKey = apiecoKey_example # String | apikey for use API
phrase = phrase_example # String | your text
try:
# get some informations about a Text
api_response = api_instance.collect_info(apiecoKey, phrase)
pprint(api_response)
except ApiException as e:
print("Exception when calling CollectInfoApi->collectInfo: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Form parameters
Name | Description |
---|---|
Phrase* |
String
your text
Required
|