apiCompanyIdGet
Get company by Id (شناسه ملی)
/api/Company/{id}
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/lilak/api/Company/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LilakApiApi;
import java.io.File;
import java.util.*;
public class LilakApiApiExample {
public static void main(String[] args) {
LilakApiApi apiInstance = new LilakApiApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String id = id_example; // String | شناسه ملی
try {
apiInstance.apiCompanyIdGet(apiecoKey, id);
} catch (ApiException e) {
System.err.println("Exception when calling LilakApiApi#apiCompanyIdGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.LilakApiApi;
public class LilakApiApiExample {
public static void main(String[] args) {
LilakApiApi apiInstance = new LilakApiApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String id = id_example; // String | شناسه ملی
try {
apiInstance.apiCompanyIdGet(apiecoKey, id);
} catch (ApiException e) {
System.err.println("Exception when calling LilakApiApi#apiCompanyIdGet");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *id = id_example; // شناسه ملی
LilakApiApi *apiInstance = [[LilakApiApi alloc] init];
// Get company by Id (شناسه ملی)
[apiInstance apiCompanyIdGetWith:apiecoKey
id:id
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var LilakApi = require('lilak_api');
var api = new LilakApi.LilakApiApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var id = id_example; // {String} شناسه ملی
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.apiCompanyIdGet(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class apiCompanyIdGetExample
{
public void main()
{
var apiInstance = new LilakApiApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var id = id_example; // String | شناسه ملی
try
{
// Get company by Id (شناسه ملی)
apiInstance.apiCompanyIdGet(apiecoKey, id);
}
catch (Exception e)
{
Debug.Print("Exception when calling LilakApiApi.apiCompanyIdGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\LilakApiApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$id = id_example; // String | شناسه ملی
try {
$api_instance->apiCompanyIdGet($apiecoKey, $id);
} catch (Exception $e) {
echo 'Exception when calling LilakApiApi->apiCompanyIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LilakApiApi;
my $api_instance = WWW::SwaggerClient::LilakApiApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $id = id_example; # String | شناسه ملی
eval {
$api_instance->apiCompanyIdGet(apiecoKey => $apiecoKey, id => $id);
};
if ($@) {
warn "Exception when calling LilakApiApi->apiCompanyIdGet: $@\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.LilakApiApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
id = id_example # String | شناسه ملی
try:
# Get company by Id (شناسه ملی)
api_instance.api_company_id_get(apiecoKey, id)
except ApiException as e:
print("Exception when calling LilakApiApi->apiCompanyIdGet: %s\n" % e)
Parameters
Path parameters
Name | Description |
---|---|
id* |
String
شناسه ملی
Required
|
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|