addCustomer
Adds a new user ( customer) to the system
/auth/add/planner
Usage and SDK Samples
curl -X POST "https://virtserver.swaggerhub.com/E5251/evenza/1.0.0/auth/add/planner"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthApi;
import java.io.File;
import java.util.*;
public class AuthApiExample {
public static void main(String[] args) {
AuthApi apiInstance = new AuthApi();
SignUpCustomer signupPlanner = ; // SignUpCustomer | Sign up a Customer
try {
apiInstance.addCustomer(signupPlanner);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#addCustomer");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AuthApi;
public class AuthApiExample {
public static void main(String[] args) {
AuthApi apiInstance = new AuthApi();
SignUpCustomer signupPlanner = ; // SignUpCustomer | Sign up a Customer
try {
apiInstance.addCustomer(signupPlanner);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#addCustomer");
e.printStackTrace();
}
}
}
SignUpCustomer *signupPlanner = ; // Sign up a Customer (optional)
AuthApi *apiInstance = [[AuthApi alloc] init];
// Adds a new user ( customer) to the system
[apiInstance addCustomerWith:signupPlanner
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var EvenzaApiDocumentation = require('evenza___api_documentation');
var api = new EvenzaApiDocumentation.AuthApi()
var opts = {
'signupPlanner': // {SignUpCustomer} Sign up a Customer
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.addCustomer(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class addCustomerExample
{
public void main()
{
var apiInstance = new AuthApi();
var signupPlanner = new SignUpCustomer(); // SignUpCustomer | Sign up a Customer (optional)
try
{
// Adds a new user ( customer) to the system
apiInstance.addCustomer(signupPlanner);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthApi.addCustomer: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AuthApi();
$signupPlanner = ; // SignUpCustomer | Sign up a Customer
try {
$api_instance->addCustomer($signupPlanner);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->addCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthApi;
my $api_instance = WWW::SwaggerClient::AuthApi->new();
my $signupPlanner = WWW::SwaggerClient::Object::SignUpCustomer->new(); # SignUpCustomer | Sign up a Customer
eval {
$api_instance->addCustomer(signupPlanner => $signupPlanner);
};
if ($@) {
warn "Exception when calling AuthApi->addCustomer: $@\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.AuthApi()
signupPlanner = # SignUpCustomer | Sign up a Customer (optional)
try:
# Adds a new user ( customer) to the system
api_instance.add_customer(signupPlanner=signupPlanner)
except ApiException as e:
print("Exception when calling AuthApi->addCustomer: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| signupPlanner |