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