information_gathering

PortCheck

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

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


Whois

whois

get whois of website by website domain


/apitalk/information-gathering/Whois

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/information-gathering/Whois"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WhoisApi;

import java.io.File;
import java.util.*;

public class WhoisApiExample {

    public static void main(String[] args) {
        
        WhoisApi apiInstance = new WhoisApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String domain = domain_example; // String | The domain address
        try {
            Whois_response result = apiInstance.whois(apiecoKey, domain);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WhoisApi#whois");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WhoisApi;

public class WhoisApiExample {

    public static void main(String[] args) {
        WhoisApi apiInstance = new WhoisApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String domain = domain_example; // String | The domain address
        try {
            Whois_response result = apiInstance.whois(apiecoKey, domain);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WhoisApi#whois");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *domain = domain_example; // The domain address

WhoisApi *apiInstance = [[WhoisApi alloc] init];

// get whois of website by website domain
[apiInstance whoisWith:apiecoKey
    domain:domain
              completionHandler: ^(Whois_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var InformationGathering = require('information_gathering');

var api = new InformationGathering.WhoisApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var domain = domain_example; // {String} The domain address


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.whois(apiecoKey, domain, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class whoisExample
    {
        public void main()
        {
            
            var apiInstance = new WhoisApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var domain = domain_example;  // String | The domain address

            try
            {
                // get whois of website by website domain
                Whois_response result = apiInstance.whois(apiecoKey, domain);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WhoisApi.whois: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\WhoisApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$domain = domain_example; // String | The domain address

try {
    $result = $api_instance->whois($apiecoKey, $domain);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhoisApi->whois: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WhoisApi;

my $api_instance = WWW::SwaggerClient::WhoisApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $domain = domain_example; # String | The domain address

eval { 
    my $result = $api_instance->whois(apiecoKey => $apiecoKey, domain => $domain);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WhoisApi->whois: $@\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.WhoisApi()
apiecoKey = apiecoKey_example # String | apikey for use API
domain = domain_example # String | The domain address

try: 
    # get whois of website by website domain
    api_response = api_instance.whois(apiecoKey, domain)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WhoisApi->whois: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
domain*
String
The domain address
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error