Hash_API

CheckMd5OrSha512

checkMd5OrSha512

you should send (data: your hash data , answer : your answer ,hashing method : md5 or sha512)


/apitalk/hash-api/check_md5_or_sha512

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/hash-api/check_md5_or_sha512"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CheckMd5OrSha512Api;

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

public class CheckMd5OrSha512ApiExample {

    public static void main(String[] args) {
        
        CheckMd5OrSha512Api apiInstance = new CheckMd5OrSha512Api();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String data = data_example; // String | The data
        String answer = answer_example; // String | your Hash code
        String method = method_example; // String | md5 or sha512
        try {
            Check_response result = apiInstance.checkMd5OrSha512(apiecoKey, data, answer, method);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckMd5OrSha512Api#checkMd5OrSha512");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CheckMd5OrSha512Api;

public class CheckMd5OrSha512ApiExample {

    public static void main(String[] args) {
        CheckMd5OrSha512Api apiInstance = new CheckMd5OrSha512Api();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String data = data_example; // String | The data
        String answer = answer_example; // String | your Hash code
        String method = method_example; // String | md5 or sha512
        try {
            Check_response result = apiInstance.checkMd5OrSha512(apiecoKey, data, answer, method);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckMd5OrSha512Api#checkMd5OrSha512");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *data = data_example; // The data
String *answer = answer_example; // your Hash code
String *method = method_example; // md5 or sha512

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

// 
[apiInstance checkMd5OrSha512With:apiecoKey
    data:data
    answer:answer
    method:method
              completionHandler: ^(Check_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HashApi = require('hash_api');

var api = new HashApi.CheckMd5OrSha512Api()

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

var data = data_example; // {String} The data

var answer = answer_example; // {String} your Hash code

var method = method_example; // {String} md5 or sha512


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

namespace Example
{
    public class checkMd5OrSha512Example
    {
        public void main()
        {
            
            var apiInstance = new CheckMd5OrSha512Api();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var data = data_example;  // String | The data
            var answer = answer_example;  // String | your Hash code
            var method = method_example;  // String | md5 or sha512

            try
            {
                // 
                Check_response result = apiInstance.checkMd5OrSha512(apiecoKey, data, answer, method);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CheckMd5OrSha512Api.checkMd5OrSha512: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CheckMd5OrSha512Api();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = data_example; // String | The data
$answer = answer_example; // String | your Hash code
$method = method_example; // String | md5 or sha512

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

my $api_instance = WWW::SwaggerClient::CheckMd5OrSha512Api->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = data_example; # String | The data
my $answer = answer_example; # String | your Hash code
my $method = method_example; # String | md5 or sha512

eval { 
    my $result = $api_instance->checkMd5OrSha512(apiecoKey => $apiecoKey, data => $data, answer => $answer, method => $method);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckMd5OrSha512Api->checkMd5OrSha512: $@\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.CheckMd5OrSha512Api()
apiecoKey = apiecoKey_example # String | apikey for use API
data = data_example # String | The data
answer = answer_example # String | your Hash code
method = method_example # String | md5 or sha512

try: 
    # 
    api_response = api_instance.check_md5_or_sha512(apiecoKey, data, answer, method)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckMd5OrSha512Api->checkMd5OrSha512: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
data*
String
The data
Required
answer*
String
your Hash code
Required
method*
String
md5 or sha512
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


Md5

md5

send data to hash this whith md5


/apitalk/hash-api/md5

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/hash-api/md5"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.Md5Api;

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

public class Md5ApiExample {

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

public class Md5ApiExample {

    public static void main(String[] args) {
        Md5Api apiInstance = new Md5Api();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String data = data_example; // String | The data
        try {
            md5_response result = apiInstance.md5(apiecoKey, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Md5Api#md5");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *data = data_example; // The data

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

// send data to hash this whith md5
[apiInstance md5With:apiecoKey
    data:data
              completionHandler: ^(md5_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HashApi = require('hash_api');

var api = new HashApi.Md5Api()

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

var data = data_example; // {String} The data


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

namespace Example
{
    public class md5Example
    {
        public void main()
        {
            
            var apiInstance = new Md5Api();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var data = data_example;  // String | The data

            try
            {
                // send data to hash this whith md5
                md5_response result = apiInstance.md5(apiecoKey, data);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling Md5Api.md5: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\Md5Api();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = data_example; // String | The data

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

my $api_instance = WWW::SwaggerClient::Md5Api->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = data_example; # String | The data

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

try: 
    # send data to hash this whith md5
    api_response = api_instance.md5(apiecoKey, data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling Md5Api->md5: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
data*
String
The data
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


Sha512

sha512

send data to hash this whith sha512


/apitalk/hash-api/sha512

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/hash-api/sha512"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.Sha512Api;

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

public class Sha512ApiExample {

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

public class Sha512ApiExample {

    public static void main(String[] args) {
        Sha512Api apiInstance = new Sha512Api();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String data = data_example; // String | The data
        try {
            sha512_response result = apiInstance.sha512(apiecoKey, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Sha512Api#sha512");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *data = data_example; // The data

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

// send data to hash this whith sha512
[apiInstance sha512With:apiecoKey
    data:data
              completionHandler: ^(sha512_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HashApi = require('hash_api');

var api = new HashApi.Sha512Api()

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

var data = data_example; // {String} The data


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

namespace Example
{
    public class sha512Example
    {
        public void main()
        {
            
            var apiInstance = new Sha512Api();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var data = data_example;  // String | The data

            try
            {
                // send data to hash this whith sha512
                sha512_response result = apiInstance.sha512(apiecoKey, data);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling Sha512Api.sha512: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\Sha512Api();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = data_example; // String | The data

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

my $api_instance = WWW::SwaggerClient::Sha512Api->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = data_example; # String | The data

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

try: 
    # send data to hash this whith sha512
    api_response = api_instance.sha512(apiecoKey, data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling Sha512Api->sha512: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
data*
String
The data
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