curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/words/words?letterpattern=&random=&partofspeech=&pronunciationpattern=&lettersmin=&lettersmax=&letters=&soundsmax=&sounds=&soundsmin=&syllables=&syllablesmin=&syllablesmax=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SearchApi;
import java.io.File;
import java.util.*;
public class SearchApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apieco-key
ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
apieco-key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.setApiKeyPrefix("Token");
SearchApi apiInstance = new SearchApi();
String apiecoKey = apiecoKey_example; // String |
Boolean random = true; // Boolean |
String letterpattern = letterpattern_example; // String | Find words whose letters match the regular expression.
String partofspeech = partofspeech_example; // String | The matching word must have at least one definition with this part of speech.
String pronunciationpattern = pronunciationpattern_example; // String | Find words whose pronunciation matches the regular expression.
String lettersmin = lettersmin_example; // String | The minimum number of letters the word must have.
String lettersmax = lettersmax_example; // String | The maximum number of letters the word can have.
String letters = letters_example; // String | The number of letters the word must have.
String soundsmax = soundsmax_example; // String | The maximum number of phonemes (sounds) the word can have.
String sounds = sounds_example; // String | The number of phonemes (sounds) the word mush have.
String soundsmin = soundsmin_example; // String | The minimum number of phonemes (sounds) the word can have.
String syllables = syllables_example; // String | The number of syllables the word must have.
String syllablesmin = syllablesmin_example; // String | The minimum number of syllables the word can have.
String syllablesmax = syllablesmax_example; // String | The maximum number of syllables the word can have.
String limit = limit_example; // String | The number of results to return per page. Must be between 1 and 100. Default is 100.
try {
inline_response_200_21 result = apiInstance.wordsGet(apiecoKey, random, letterpattern, partofspeech, pronunciationpattern, lettersmin, lettersmax, letters, soundsmax, sounds, soundsmin, syllables, syllablesmin, syllablesmax, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#wordsGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.SearchApi;
public class SearchApiExample {
public static void main(String[] args) {
SearchApi apiInstance = new SearchApi();
String apiecoKey = apiecoKey_example; // String |
Boolean random = true; // Boolean |
String letterpattern = letterpattern_example; // String | Find words whose letters match the regular expression.
String partofspeech = partofspeech_example; // String | The matching word must have at least one definition with this part of speech.
String pronunciationpattern = pronunciationpattern_example; // String | Find words whose pronunciation matches the regular expression.
String lettersmin = lettersmin_example; // String | The minimum number of letters the word must have.
String lettersmax = lettersmax_example; // String | The maximum number of letters the word can have.
String letters = letters_example; // String | The number of letters the word must have.
String soundsmax = soundsmax_example; // String | The maximum number of phonemes (sounds) the word can have.
String sounds = sounds_example; // String | The number of phonemes (sounds) the word mush have.
String soundsmin = soundsmin_example; // String | The minimum number of phonemes (sounds) the word can have.
String syllables = syllables_example; // String | The number of syllables the word must have.
String syllablesmin = syllablesmin_example; // String | The minimum number of syllables the word can have.
String syllablesmax = syllablesmax_example; // String | The maximum number of syllables the word can have.
String limit = limit_example; // String | The number of results to return per page. Must be between 1 and 100. Default is 100.
try {
inline_response_200_21 result = apiInstance.wordsGet(apiecoKey, random, letterpattern, partofspeech, pronunciationpattern, lettersmin, lettersmax, letters, soundsmax, sounds, soundsmin, syllables, syllablesmin, syllablesmax, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#wordsGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];
String *apiecoKey = apiecoKey_example; //
Boolean *random = true; //
String *letterpattern = letterpattern_example; // Find words whose letters match the regular expression. (optional)
String *partofspeech = partofspeech_example; // The matching word must have at least one definition with this part of speech. (optional)
String *pronunciationpattern = pronunciationpattern_example; // Find words whose pronunciation matches the regular expression. (optional)
String *lettersmin = lettersmin_example; // The minimum number of letters the word must have. (optional)
String *lettersmax = lettersmax_example; // The maximum number of letters the word can have. (optional)
String *letters = letters_example; // The number of letters the word must have. (optional)
String *soundsmax = soundsmax_example; // The maximum number of phonemes (sounds) the word can have. (optional)
String *sounds = sounds_example; // The number of phonemes (sounds) the word mush have. (optional)
String *soundsmin = soundsmin_example; // The minimum number of phonemes (sounds) the word can have. (optional)
String *syllables = syllables_example; // The number of syllables the word must have. (optional)
String *syllablesmin = syllablesmin_example; // The minimum number of syllables the word can have. (optional)
String *syllablesmax = syllablesmax_example; // The maximum number of syllables the word can have. (optional)
String *limit = limit_example; // The number of results to return per page. Must be between 1 and 100. Default is 100. (optional)
SearchApi *apiInstance = [[SearchApi alloc] init];
// Search for words matching the parameters you provide.
[apiInstance wordsGetWith:apiecoKey
random:random
letterpattern:letterpattern
partofspeech:partofspeech
pronunciationpattern:pronunciationpattern
lettersmin:lettersmin
lettersmax:lettersmax
letters:letters
soundsmax:soundsmax
sounds:sounds
soundsmin:soundsmin
syllables:syllables
syllablesmin:syllablesmin
syllablesmax:syllablesmax
limit:limit
completionHandler: ^(inline_response_200_21 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var WordsApi_ = require('_words_api_');
var defaultClient = WordsApi_.ApiClient.instance;
// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"
var api = new WordsApi_.SearchApi()
var apiecoKey = apiecoKey_example; // {String}
var random = true; // {Boolean}
var opts = {
'letterpattern': letterpattern_example, // {String} Find words whose letters match the regular expression.
'partofspeech': partofspeech_example, // {String} The matching word must have at least one definition with this part of speech.
'pronunciationpattern': pronunciationpattern_example, // {String} Find words whose pronunciation matches the regular expression.
'lettersmin': lettersmin_example, // {String} The minimum number of letters the word must have.
'lettersmax': lettersmax_example, // {String} The maximum number of letters the word can have.
'letters': letters_example, // {String} The number of letters the word must have.
'soundsmax': soundsmax_example, // {String} The maximum number of phonemes (sounds) the word can have.
'sounds': sounds_example, // {String} The number of phonemes (sounds) the word mush have.
'soundsmin': soundsmin_example, // {String} The minimum number of phonemes (sounds) the word can have.
'syllables': syllables_example, // {String} The number of syllables the word must have.
'syllablesmin': syllablesmin_example, // {String} The minimum number of syllables the word can have.
'syllablesmax': syllablesmax_example, // {String} The maximum number of syllables the word can have.
'limit': limit_example // {String} The number of results to return per page. Must be between 1 and 100. Default is 100.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.wordsGet(apiecoKey, random, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class wordsGetExample
{
public void main()
{
// Configure API key authorization: apieco-key
Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");
var apiInstance = new SearchApi();
var apiecoKey = apiecoKey_example; // String |
var random = true; // Boolean |
var letterpattern = letterpattern_example; // String | Find words whose letters match the regular expression. (optional)
var partofspeech = partofspeech_example; // String | The matching word must have at least one definition with this part of speech. (optional)
var pronunciationpattern = pronunciationpattern_example; // String | Find words whose pronunciation matches the regular expression. (optional)
var lettersmin = lettersmin_example; // String | The minimum number of letters the word must have. (optional)
var lettersmax = lettersmax_example; // String | The maximum number of letters the word can have. (optional)
var letters = letters_example; // String | The number of letters the word must have. (optional)
var soundsmax = soundsmax_example; // String | The maximum number of phonemes (sounds) the word can have. (optional)
var sounds = sounds_example; // String | The number of phonemes (sounds) the word mush have. (optional)
var soundsmin = soundsmin_example; // String | The minimum number of phonemes (sounds) the word can have. (optional)
var syllables = syllables_example; // String | The number of syllables the word must have. (optional)
var syllablesmin = syllablesmin_example; // String | The minimum number of syllables the word can have. (optional)
var syllablesmax = syllablesmax_example; // String | The maximum number of syllables the word can have. (optional)
var limit = limit_example; // String | The number of results to return per page. Must be between 1 and 100. Default is 100. (optional)
try
{
// Search for words matching the parameters you provide.
inline_response_200_21 result = apiInstance.wordsGet(apiecoKey, random, letterpattern, partofspeech, pronunciationpattern, lettersmin, lettersmax, letters, soundsmax, sounds, soundsmin, syllables, syllablesmin, syllablesmax, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SearchApi.wordsGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');
$api_instance = new Swagger\Client\Api\SearchApi();
$apiecoKey = apiecoKey_example; // String |
$random = true; // Boolean |
$letterpattern = letterpattern_example; // String | Find words whose letters match the regular expression.
$partofspeech = partofspeech_example; // String | The matching word must have at least one definition with this part of speech.
$pronunciationpattern = pronunciationpattern_example; // String | Find words whose pronunciation matches the regular expression.
$lettersmin = lettersmin_example; // String | The minimum number of letters the word must have.
$lettersmax = lettersmax_example; // String | The maximum number of letters the word can have.
$letters = letters_example; // String | The number of letters the word must have.
$soundsmax = soundsmax_example; // String | The maximum number of phonemes (sounds) the word can have.
$sounds = sounds_example; // String | The number of phonemes (sounds) the word mush have.
$soundsmin = soundsmin_example; // String | The minimum number of phonemes (sounds) the word can have.
$syllables = syllables_example; // String | The number of syllables the word must have.
$syllablesmin = syllablesmin_example; // String | The minimum number of syllables the word can have.
$syllablesmax = syllablesmax_example; // String | The maximum number of syllables the word can have.
$limit = limit_example; // String | The number of results to return per page. Must be between 1 and 100. Default is 100.
try {
$result = $api_instance->wordsGet($apiecoKey, $random, $letterpattern, $partofspeech, $pronunciationpattern, $lettersmin, $lettersmax, $letters, $soundsmax, $sounds, $soundsmin, $syllables, $syllablesmin, $syllablesmax, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SearchApi->wordsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SearchApi;
# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::SearchApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $random = true; # Boolean |
my $letterpattern = letterpattern_example; # String | Find words whose letters match the regular expression.
my $partofspeech = partofspeech_example; # String | The matching word must have at least one definition with this part of speech.
my $pronunciationpattern = pronunciationpattern_example; # String | Find words whose pronunciation matches the regular expression.
my $lettersmin = lettersmin_example; # String | The minimum number of letters the word must have.
my $lettersmax = lettersmax_example; # String | The maximum number of letters the word can have.
my $letters = letters_example; # String | The number of letters the word must have.
my $soundsmax = soundsmax_example; # String | The maximum number of phonemes (sounds) the word can have.
my $sounds = sounds_example; # String | The number of phonemes (sounds) the word mush have.
my $soundsmin = soundsmin_example; # String | The minimum number of phonemes (sounds) the word can have.
my $syllables = syllables_example; # String | The number of syllables the word must have.
my $syllablesmin = syllablesmin_example; # String | The minimum number of syllables the word can have.
my $syllablesmax = syllablesmax_example; # String | The maximum number of syllables the word can have.
my $limit = limit_example; # String | The number of results to return per page. Must be between 1 and 100. Default is 100.
eval {
my $result = $api_instance->wordsGet(apiecoKey => $apiecoKey, random => $random, letterpattern => $letterpattern, partofspeech => $partofspeech, pronunciationpattern => $pronunciationpattern, lettersmin => $lettersmin, lettersmax => $lettersmax, letters => $letters, soundsmax => $soundsmax, sounds => $sounds, soundsmin => $soundsmin, syllables => $syllables, syllablesmin => $syllablesmin, syllablesmax => $syllablesmax, limit => $limit);
print Dumper($result);
};
if ($@) {
warn "Exception when calling SearchApi->wordsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.SearchApi()
apiecoKey = apiecoKey_example # String |
random = true # Boolean |
letterpattern = letterpattern_example # String | Find words whose letters match the regular expression. (optional)
partofspeech = partofspeech_example # String | The matching word must have at least one definition with this part of speech. (optional)
pronunciationpattern = pronunciationpattern_example # String | Find words whose pronunciation matches the regular expression. (optional)
lettersmin = lettersmin_example # String | The minimum number of letters the word must have. (optional)
lettersmax = lettersmax_example # String | The maximum number of letters the word can have. (optional)
letters = letters_example # String | The number of letters the word must have. (optional)
soundsmax = soundsmax_example # String | The maximum number of phonemes (sounds) the word can have. (optional)
sounds = sounds_example # String | The number of phonemes (sounds) the word mush have. (optional)
soundsmin = soundsmin_example # String | The minimum number of phonemes (sounds) the word can have. (optional)
syllables = syllables_example # String | The number of syllables the word must have. (optional)
syllablesmin = syllablesmin_example # String | The minimum number of syllables the word can have. (optional)
syllablesmax = syllablesmax_example # String | The maximum number of syllables the word can have. (optional)
limit = limit_example # String | The number of results to return per page. Must be between 1 and 100. Default is 100. (optional)
try:
# Search for words matching the parameters you provide.
api_response = api_instance.words_get(apiecoKey, random, letterpattern=letterpattern, partofspeech=partofspeech, pronunciationpattern=pronunciationpattern, lettersmin=lettersmin, lettersmax=lettersmax, letters=letters, soundsmax=soundsmax, sounds=sounds, soundsmin=soundsmin, syllables=syllables, syllablesmin=syllablesmin, syllablesmax=syllablesmax, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling SearchApi->wordsGet: %s\n" % e)