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
|