rootGet
/
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/searchline/?token=&IdCode=&BirthDate=&op=&Name=&Family=&FatherName=&NationalId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NationalCodeApi;
import java.io.File;
import java.util.*;
public class NationalCodeApiExample {
public static void main(String[] args) {
NationalCodeApi apiInstance = new NationalCodeApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String token = token_example; // String | token
String idCode = idCode_example; // String | کد ملی
String birthDate = birthDate_example; // String | تاریخ تولد
String op = op_example; // String | همیشه NationalCode
String name = name_example; // String | نام
String family = family_example; // String | نام خانوادگی
String fatherName = fatherName_example; // String | نام پدر
String nationalId = nationalId_example; // String | شماره شناسنامه
try {
inline_response_200 result = apiInstance.rootGet(apiecoKey, token, idCode, birthDate, op, name, family, fatherName, nationalId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NationalCodeApi#rootGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.NationalCodeApi;
public class NationalCodeApiExample {
public static void main(String[] args) {
NationalCodeApi apiInstance = new NationalCodeApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String token = token_example; // String | token
String idCode = idCode_example; // String | کد ملی
String birthDate = birthDate_example; // String | تاریخ تولد
String op = op_example; // String | همیشه NationalCode
String name = name_example; // String | نام
String family = family_example; // String | نام خانوادگی
String fatherName = fatherName_example; // String | نام پدر
String nationalId = nationalId_example; // String | شماره شناسنامه
try {
inline_response_200 result = apiInstance.rootGet(apiecoKey, token, idCode, birthDate, op, name, family, fatherName, nationalId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NationalCodeApi#rootGet");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *token = token_example; // token
String *idCode = idCode_example; // کد ملی
String *birthDate = birthDate_example; // تاریخ تولد
String *op = op_example; // همیشه NationalCode (default to NationalCode)
String *name = name_example; // نام (optional)
String *family = family_example; // نام خانوادگی (optional)
String *fatherName = fatherName_example; // نام پدر (optional)
String *nationalId = nationalId_example; // شماره شناسنامه (optional)
NationalCodeApi *apiInstance = [[NationalCodeApi alloc] init];
[apiInstance rootGetWith:apiecoKey
token:token
idCode:idCode
birthDate:birthDate
op:op
name:name
family:family
fatherName:fatherName
nationalId:nationalId
completionHandler: ^(inline_response_200 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var _ = require('__');
var api = new _.NationalCodeApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var token = token_example; // {String} token
var idCode = idCode_example; // {String} کد ملی
var birthDate = birthDate_example; // {String} تاریخ تولد
var op = op_example; // {String} همیشه NationalCode
var opts = {
'name': name_example, // {String} نام
'family': family_example, // {String} نام خانوادگی
'fatherName': fatherName_example, // {String} نام پدر
'nationalId': nationalId_example // {String} شماره شناسنامه
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.rootGet(apiecoKey, token, idCode, birthDate, op, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class rootGetExample
{
public void main()
{
var apiInstance = new NationalCodeApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var token = token_example; // String | token
var idCode = idCode_example; // String | کد ملی
var birthDate = birthDate_example; // String | تاریخ تولد
var op = op_example; // String | همیشه NationalCode (default to NationalCode)
var name = name_example; // String | نام (optional)
var family = family_example; // String | نام خانوادگی (optional)
var fatherName = fatherName_example; // String | نام پدر (optional)
var nationalId = nationalId_example; // String | شماره شناسنامه (optional)
try
{
inline_response_200 result = apiInstance.rootGet(apiecoKey, token, idCode, birthDate, op, name, family, fatherName, nationalId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling NationalCodeApi.rootGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\NationalCodeApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$token = token_example; // String | token
$idCode = idCode_example; // String | کد ملی
$birthDate = birthDate_example; // String | تاریخ تولد
$op = op_example; // String | همیشه NationalCode
$name = name_example; // String | نام
$family = family_example; // String | نام خانوادگی
$fatherName = fatherName_example; // String | نام پدر
$nationalId = nationalId_example; // String | شماره شناسنامه
try {
$result = $api_instance->rootGet($apiecoKey, $token, $idCode, $birthDate, $op, $name, $family, $fatherName, $nationalId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NationalCodeApi->rootGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NationalCodeApi;
my $api_instance = WWW::SwaggerClient::NationalCodeApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $token = token_example; # String | token
my $idCode = idCode_example; # String | کد ملی
my $birthDate = birthDate_example; # String | تاریخ تولد
my $op = op_example; # String | همیشه NationalCode
my $name = name_example; # String | نام
my $family = family_example; # String | نام خانوادگی
my $fatherName = fatherName_example; # String | نام پدر
my $nationalId = nationalId_example; # String | شماره شناسنامه
eval {
my $result = $api_instance->rootGet(apiecoKey => $apiecoKey, token => $token, idCode => $idCode, birthDate => $birthDate, op => $op, name => $name, family => $family, fatherName => $fatherName, nationalId => $nationalId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling NationalCodeApi->rootGet: $@\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.NationalCodeApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
token = token_example # String | token
idCode = idCode_example # String | کد ملی
birthDate = birthDate_example # String | تاریخ تولد
op = op_example # String | همیشه NationalCode (default to NationalCode)
name = name_example # String | نام (optional)
family = family_example # String | نام خانوادگی (optional)
fatherName = fatherName_example # String | نام پدر (optional)
nationalId = nationalId_example # String | شماره شناسنامه (optional)
try:
api_response = api_instance.root_get(apiecoKey, token, idCode, birthDate, op, name=name, family=family, fatherName=fatherName, nationalId=nationalId)
pprint(api_response)
except ApiException as e:
print("Exception when calling NationalCodeApi->rootGet: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco_key* |
String
apikey for use API
Required
|
Query parameters
Name | Description |
---|---|
token* |
String
token
Required
|
IdCode* |
String
کد ملی
Required
|
BirthDate* |
String
تاریخ تولد
Required
|
op* |
String
همیشه NationalCode
Required
|
Name |
String
نام
|
Family |
String
نام خانوادگی
|
FatherName |
String
نام پدر
|
NationalId |
String
شماره شناسنامه
|