consumption
<NAME_OF_MATERIAL> = `U235`,`U232`,`U233`,`U234`,`U236`,`U238`,`Th228`,`Th229`,`Th230`,`Th231`,`Th232`,`Th234`,`Po208`,`Po209`,`Po210`,`Ra223`,`Ra224`,`Ra226`,`Ra228`
/apitalk/radioactive-api/Consumption/<NAME_OF_MATERIAL>
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/apitalk/radioactive-api/Consumption/<NAME_OF_MATERIAL>"
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
Integer mass = 56; // Integer | your mass
Integer time = 56; // Integer | your time
try {
result result = apiInstance.consumption(apiecoKey, mass, time);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CalculateApi#consumption");
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
Integer mass = 56; // Integer | your mass
Integer time = 56; // Integer | your time
try {
result result = apiInstance.consumption(apiecoKey, mass, time);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CalculateApi#consumption");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API
Integer *mass = 56; // your mass
Integer *time = 56; // your time
CalculateApi *apiInstance = [[CalculateApi alloc] init];
//
[apiInstance consumptionWith:apiecoKey
mass:mass
time:time
completionHandler: ^(result output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var RadioactiveApi = require('radioactive_api');
var api = new RadioactiveApi.CalculateApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var mass = 56; // {Integer} your mass
var time = 56; // {Integer} your time
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.consumption(apiecoKey, mass, time, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class consumptionExample
{
public void main()
{
var apiInstance = new CalculateApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API
var mass = 56; // Integer | your mass
var time = 56; // Integer | your time
try
{
//
result result = apiInstance.consumption(apiecoKey, mass, time);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CalculateApi.consumption: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CalculateApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$mass = 56; // Integer | your mass
$time = 56; // Integer | your time
try {
$result = $api_instance->consumption($apiecoKey, $mass, $time);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CalculateApi->consumption: ', $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 $mass = 56; # Integer | your mass
my $time = 56; # Integer | your time
eval {
my $result = $api_instance->consumption(apiecoKey => $apiecoKey, mass => $mass, time => $time);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CalculateApi->consumption: $@\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
mass = 56 # Integer | your mass
time = 56 # Integer | your time
try:
#
api_response = api_instance.consumption(apiecoKey, mass, time)
pprint(api_response)
except ApiException as e:
print("Exception when calling CalculateApi->consumption: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Form parameters
Name | Description |
---|---|
mass* |
Integer
your mass
Required
|
time* |
Integer
your time
Required
|