portCheck
you should send (IP as 'IP',number of port as 'num')
/apitalk/information-gathering/PortCheck
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/apitalk/information-gathering/PortCheck"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PortCheckApi;
import java.io.File;
import java.util.*;
public class PortCheckApiExample {
public static void main(String[] args) {
PortCheckApi apiInstance = new PortCheckApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String iP = iP_example; // String | The IP
String num = num_example; // String | The port number
try {
PortCheck_response result = apiInstance.portCheck(apiecoKey, iP, num);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PortCheckApi#portCheck");
e.printStackTrace();
}
}
}
import io.swagger.client.api.PortCheckApi;
public class PortCheckApiExample {
public static void main(String[] args) {
PortCheckApi apiInstance = new PortCheckApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String iP = iP_example; // String | The IP
String num = num_example; // String | The port number
try {
PortCheck_response result = apiInstance.portCheck(apiecoKey, iP, num);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PortCheckApi#portCheck");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *iP = iP_example; // The IP
String *num = num_example; // The port number
PortCheckApi *apiInstance = [[PortCheckApi alloc] init];
// you should send (IP as 'IP',number of port as 'num')
[apiInstance portCheckWith:apiecoKey
iP:iP
num:num
completionHandler: ^(PortCheck_response output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var InformationGathering = require('information_gathering');
var api = new InformationGathering.PortCheckApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var iP = iP_example; // {String} The IP
var num = num_example; // {String} The port number
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.portCheck(apiecoKey, iP, num, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class portCheckExample
{
public void main()
{
var apiInstance = new PortCheckApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API
var iP = iP_example; // String | The IP
var num = num_example; // String | The port number
try
{
// you should send (IP as 'IP',number of port as 'num')
PortCheck_response result = apiInstance.portCheck(apiecoKey, iP, num);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PortCheckApi.portCheck: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\PortCheckApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$iP = iP_example; // String | The IP
$num = num_example; // String | The port number
try {
$result = $api_instance->portCheck($apiecoKey, $iP, $num);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PortCheckApi->portCheck: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PortCheckApi;
my $api_instance = WWW::SwaggerClient::PortCheckApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $iP = iP_example; # String | The IP
my $num = num_example; # String | The port number
eval {
my $result = $api_instance->portCheck(apiecoKey => $apiecoKey, iP => $iP, num => $num);
print Dumper($result);
};
if ($@) {
warn "Exception when calling PortCheckApi->portCheck: $@\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.PortCheckApi()
apiecoKey = apiecoKey_example # String | apikey for use API
iP = iP_example # String | The IP
num = num_example # String | The port number
try:
# you should send (IP as 'IP',number of port as 'num')
api_response = api_instance.port_check(apiecoKey, iP, num)
pprint(api_response)
except ApiException as e:
print("Exception when calling PortCheckApi->portCheck: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Form parameters
Name | Description |
---|---|
IP* |
String
The IP
Required
|
num* |
String
The port number
Required
|