searchAutocompletePost
/search/autocomplete
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/map-ir/search/autocomplete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AutocompleteApi;
import java.io.File;
import java.util.*;
public class AutocompleteApiExample {
public static void main(String[] args) {
AutocompleteApi apiInstance = new AutocompleteApi();
String xApiKey = xApiKey_example; // String | apikey for use API
AutocompleteBody body = ; // AutocompleteBody | request for search
try {
AutocompleteResponse result = apiInstance.searchAutocompletePost(xApiKey, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AutocompleteApi#searchAutocompletePost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AutocompleteApi;
public class AutocompleteApiExample {
public static void main(String[] args) {
AutocompleteApi apiInstance = new AutocompleteApi();
String xApiKey = xApiKey_example; // String | apikey for use API
AutocompleteBody body = ; // AutocompleteBody | request for search
try {
AutocompleteResponse result = apiInstance.searchAutocompletePost(xApiKey, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AutocompleteApi#searchAutocompletePost");
e.printStackTrace();
}
}
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
AutocompleteBody *body = ; // request for search
AutocompleteApi *apiInstance = [[AutocompleteApi alloc] init];
[apiInstance searchAutocompletePostWith:xApiKey
body:body
completionHandler: ^(AutocompleteResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var _ = require('___');
var api = new _.AutocompleteApi()
var xApiKey = xApiKey_example; // {String} apikey for use API
var body = ; // {AutocompleteBody} request for search
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.searchAutocompletePost(xApiKey, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class searchAutocompletePostExample
{
public void main()
{
var apiInstance = new AutocompleteApi();
var xApiKey = xApiKey_example; // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var body = new AutocompleteBody(); // AutocompleteBody | request for search
try
{
AutocompleteResponse result = apiInstance.searchAutocompletePost(xApiKey, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AutocompleteApi.searchAutocompletePost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AutocompleteApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$body = ; // AutocompleteBody | request for search
try {
$result = $api_instance->searchAutocompletePost($xApiKey, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AutocompleteApi->searchAutocompletePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AutocompleteApi;
my $api_instance = WWW::SwaggerClient::AutocompleteApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::AutocompleteBody->new(); # AutocompleteBody | request for search
eval {
my $result = $api_instance->searchAutocompletePost(xApiKey => $xApiKey, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AutocompleteApi->searchAutocompletePost: $@\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.AutocompleteApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body = # AutocompleteBody | request for search
try:
api_response = api_instance.search_autocomplete_post(xApiKey, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AutocompleteApi->searchAutocompletePost: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
x-api-key* |
String
apikey for use API
Required
|
Body parameters
Name | Description |
---|---|
body * |