specimenIdGet
Get a Specimen resource based on the ID..
/Specimen/{id}
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"//Specimen/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SpecimenApi;
import java.io.File;
import java.util.*;
public class SpecimenApiExample {
public static void main(String[] args) {
SpecimenApi apiInstance = new SpecimenApi();
String id = id_example; // String | The ID of the Specimen resource.
try {
Specimen result = apiInstance.specimenIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SpecimenApi#specimenIdGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.SpecimenApi;
public class SpecimenApiExample {
public static void main(String[] args) {
SpecimenApi apiInstance = new SpecimenApi();
String id = id_example; // String | The ID of the Specimen resource.
try {
Specimen result = apiInstance.specimenIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SpecimenApi#specimenIdGet");
e.printStackTrace();
}
}
}
String *id = id_example; // The ID of the Specimen resource.
SpecimenApi *apiInstance = [[SpecimenApi alloc] init];
[apiInstance specimenIdGetWith:id
completionHandler: ^(Specimen output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Specimen = require('specimen');
var api = new Specimen.SpecimenApi()
var id = id_example; // {{String}} The ID of the Specimen resource.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.specimenIdGet(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class specimenIdGetExample
{
public void main()
{
var apiInstance = new SpecimenApi();
var id = id_example; // String | The ID of the Specimen resource.
try
{
Specimen result = apiInstance.specimenIdGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SpecimenApi.specimenIdGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiSpecimenApi();
$id = id_example; // String | The ID of the Specimen resource.
try {
$result = $api_instance->specimenIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SpecimenApi->specimenIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SpecimenApi;
my $api_instance = WWW::SwaggerClient::SpecimenApi->new();
my $id = id_example; # String | The ID of the Specimen resource.
eval {
my $result = $api_instance->specimenIdGet(id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling SpecimenApi->specimenIdGet: $@\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.SpecimenApi()
id = id_example # String | The ID of the Specimen resource.
try:
api_response = api_instance.specimen_id_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpecimenApi->specimenIdGet: %s\n" % e)
Parameters
Path parameters
| Name | Description |
|---|---|
| id* |
String
The ID of the Specimen resource.
Required
|