list_customers
List all customers
Listing all customers
/customers/list
Usage and SDK Samples
curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://rest.cloud1.openhandwerk.de/customers/list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;
import java.io.File;
import java.util.*;
public class CustomersApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
CustomersApi apiInstance = new CustomersApi();
try {
CustomersList result = apiInstance.list_customers();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#list_customers");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CustomersApi;
public class CustomersApiExample {
public static void main(String[] args) {
CustomersApi apiInstance = new CustomersApi();
try {
CustomersList result = apiInstance.list_customers();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#list_customers");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
CustomersApi *apiInstance = [[CustomersApi alloc] init];
// List all customers
[apiInstance list_customersWithCompletionHandler:
^(CustomersList output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OpenHandwerkApi = require('open_handwerk_api');
var defaultClient = OpenHandwerkApi.ApiClient.instance;
var api = new OpenHandwerkApi.CustomersApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.list_customers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class list_customersExample
{
public void main()
{
var apiInstance = new CustomersApi();
try
{
// List all customers
CustomersList result = apiInstance.list_customers();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CustomersApi.list_customers: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiCustomersApi();
try {
$result = $api_instance->list_customers();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->list_customers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomersApi;
my $api_instance = WWW::SwaggerClient::CustomersApi->new();
eval {
my $result = $api_instance->list_customers();
print Dumper($result);
};
if ($@) {
warn "Exception when calling CustomersApi->list_customers: $@\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.CustomersApi()
try:
# List all customers
api_response = api_instance.list_customers()
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->list_customers: %s\n" % e)