guess
گرفتن احتمالات گروه خونی فرزند از روی گروه خونی والد
/apitalk/blood-group/Guess/
Usage and SDK Samples
curl -X POST "https://localhost/apitalk/blood-group/Guess/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CalculateApi;
import java.io.File;
import java.util.*;
public class CalculateApiExample {
public static void main(String[] args) {
CalculateApi apiInstance = new CalculateApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String p1 = p1_example; // String | like b +
String p2 = p2_example; // String | like b +
try {
Guess result = apiInstance.guess(apiecoKey, p1, p2);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CalculateApi#guess");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CalculateApi;
public class CalculateApiExample {
public static void main(String[] args) {
CalculateApi apiInstance = new CalculateApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String p1 = p1_example; // String | like b +
String p2 = p2_example; // String | like b +
try {
Guess result = apiInstance.guess(apiecoKey, p1, p2);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CalculateApi#guess");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *p1 = p1_example; // like b +
String *p2 = p2_example; // like b +
CalculateApi *apiInstance = [[CalculateApi alloc] init];
//
[apiInstance guessWith:apiecoKey
p1:p1
p2:p2
completionHandler: ^(Guess output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var BloodGroupApi = require('blood_group_api');
var api = new BloodGroupApi.CalculateApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var p1 = p1_example; // {String} like b +
var p2 = p2_example; // {String} like b +
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.guess(apiecoKey, p1, p2, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class guessExample
{
public void main()
{
var apiInstance = new CalculateApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API
var p1 = p1_example; // String | like b +
var p2 = p2_example; // String | like b +
try
{
//
Guess result = apiInstance.guess(apiecoKey, p1, p2);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CalculateApi.guess: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CalculateApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$p1 = p1_example; // String | like b +
$p2 = p2_example; // String | like b +
try {
$result = $api_instance->guess($apiecoKey, $p1, $p2);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CalculateApi->guess: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CalculateApi;
my $api_instance = WWW::SwaggerClient::CalculateApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $p1 = p1_example; # String | like b +
my $p2 = p2_example; # String | like b +
eval {
my $result = $api_instance->guess(apiecoKey => $apiecoKey, p1 => $p1, p2 => $p2);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CalculateApi->guess: $@\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.CalculateApi()
apiecoKey = apiecoKey_example # String | apikey for use API
p1 = p1_example # String | like b +
p2 = p2_example # String | like b +
try:
#
api_response = api_instance.guess(apiecoKey, p1, p2)
pprint(api_response)
except ApiException as e:
print("Exception when calling CalculateApi->guess: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Form parameters
Name | Description |
---|---|
p1* |
String
like b +
Required
|
p2* |
String
like b +
Required
|