connectedCustomerGet
ConnectedCustomer_Get
/ConnectedCustomer/{id}
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json,text/json,application/xml,text/xml" \
"https://api.dev.spenda.co/api/ConnectedCustomer/{id}?filterOnActiveContactsOnly=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Integer id = 56; // Integer | Format - int32.
Integer filterOnActiveContactsOnly = 56; // Integer | Format - int32.
try {
ConnectedCustomer result = apiInstance.connectedCustomerGet(id, filterOnActiveContactsOnly);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#connectedCustomerGet");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Integer id = new Integer(); // Integer | Format - int32.
final Integer filterOnActiveContactsOnly = new Integer(); // Integer | Format - int32.
try {
final result = await api_instance.connectedCustomerGet(id, filterOnActiveContactsOnly);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->connectedCustomerGet: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Integer id = 56; // Integer | Format - int32.
Integer filterOnActiveContactsOnly = 56; // Integer | Format - int32.
try {
ConnectedCustomer result = apiInstance.connectedCustomerGet(id, filterOnActiveContactsOnly);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#connectedCustomerGet");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)
Integer *filterOnActiveContactsOnly = 56; // Format - int32. (optional) (default to null)
// ConnectedCustomer_Get
[apiInstance connectedCustomerGetWith:id
filterOnActiveContactsOnly:filterOnActiveContactsOnly
completionHandler: ^(ConnectedCustomer output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiConnectedCustomer = require('as_server_api_connected_customer');
// Create an instance of the API class
var api = new AsServerApiConnectedCustomer.DefaultApi()
var id = 56; // {Integer} Format - int32.
var opts = {
'filterOnActiveContactsOnly': 56 // {Integer} Format - int32.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.connectedCustomerGet(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class connectedCustomerGetExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var id = 56; // Integer | Format - int32. (default to null)
var filterOnActiveContactsOnly = 56; // Integer | Format - int32. (optional) (default to null)
try {
// ConnectedCustomer_Get
ConnectedCustomer result = apiInstance.connectedCustomerGet(id, filterOnActiveContactsOnly);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.connectedCustomerGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.
$filterOnActiveContactsOnly = 56; // Integer | Format - int32.
try {
$result = $api_instance->connectedCustomerGet($id, $filterOnActiveContactsOnly);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->connectedCustomerGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.
my $filterOnActiveContactsOnly = 56; # Integer | Format - int32.
eval {
my $result = $api_instance->connectedCustomerGet(id => $id, filterOnActiveContactsOnly => $filterOnActiveContactsOnly);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->connectedCustomerGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)
filterOnActiveContactsOnly = 56 # Integer | Format - int32. (optional) (default to null)
try:
# ConnectedCustomer_Get
api_response = api_instance.connected_customer_get(id, filterOnActiveContactsOnly=filterOnActiveContactsOnly)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->connectedCustomerGet: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let id = 56; // Integer
let filterOnActiveContactsOnly = 56; // Integer
let mut context = DefaultApi::Context::default();
let result = client.connectedCustomerGet(id, filterOnActiveContactsOnly, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Path parameters
| Name | Description |
|---|---|
| id* |
Integer
(int32)
Format - int32.
Required
|
Query parameters
| Name | Description |
|---|---|
| filterOnActiveContactsOnly |
Integer
(int32)
Format - int32.
|