bcAccountAddDeviceConfPost
Confirms a device association request
/bc/account/addDeviceConf
Usage and SDK Samples
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//bc/account/addDeviceConf?apiKey="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;
import java.io.File;
import java.util.*;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
AddDeviceConfirmDTO body = ; // AddDeviceConfirmDTO |
String apiKey = apiKey_example; // String |
try {
AddDeviceResponseDTO result = apiInstance.bcAccountAddDeviceConfPost(body, apiKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#bcAccountAddDeviceConfPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountApi;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
AddDeviceConfirmDTO body = ; // AddDeviceConfirmDTO |
String apiKey = apiKey_example; // String |
try {
AddDeviceResponseDTO result = apiInstance.bcAccountAddDeviceConfPost(body, apiKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#bcAccountAddDeviceConfPost");
e.printStackTrace();
}
}
}
AddDeviceConfirmDTO *body = ; //
String *apiKey = apiKey_example; //
AccountApi *apiInstance = [[AccountApi alloc] init];
// Confirms a device association request
[apiInstance bcAccountAddDeviceConfPostWith:body
apiKey:apiKey
completionHandler: ^(AddDeviceResponseDTO output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var 1TrueId30ApiCustomer = require('1_true_id_30_api_customer');
var api = new 1TrueId30ApiCustomer.AccountApi()
var body = ; // {{AddDeviceConfirmDTO}}
var apiKey = apiKey_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.bcAccountAddDeviceConfPost(bodyapiKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class bcAccountAddDeviceConfPostExample
{
public void main()
{
var apiInstance = new AccountApi();
var body = new AddDeviceConfirmDTO(); // AddDeviceConfirmDTO |
var apiKey = apiKey_example; // String |
try
{
// Confirms a device association request
AddDeviceResponseDTO result = apiInstance.bcAccountAddDeviceConfPost(body, apiKey);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountApi.bcAccountAddDeviceConfPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAccountApi();
$body = ; // AddDeviceConfirmDTO |
$apiKey = apiKey_example; // String |
try {
$result = $api_instance->bcAccountAddDeviceConfPost($body, $apiKey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->bcAccountAddDeviceConfPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;
my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $body = WWW::SwaggerClient::Object::AddDeviceConfirmDTO->new(); # AddDeviceConfirmDTO |
my $apiKey = apiKey_example; # String |
eval {
my $result = $api_instance->bcAccountAddDeviceConfPost(body => $body, apiKey => $apiKey);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountApi->bcAccountAddDeviceConfPost: $@\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.AccountApi()
body = # AddDeviceConfirmDTO |
apiKey = apiKey_example # String |
try:
# Confirms a device association request
api_response = api_instance.bc_account_add_device_conf_post(body, apiKey)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->bcAccountAddDeviceConfPost: %s\n" % e)
Parameters
Name | Description |
---|---|
body * |
Name | Description |
---|---|
apiKey* |
String
Required
|