addclient
add client
/v1/auth/clients/add
Usage and SDK Samples
curl -X POST "//v1/auth/clients/add"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String apiecoKey = apiecoKey_example; // String |
String contentType = contentType_example; // String |
String xConsumerId = xConsumerId_example; // String |
String xConsumerUsername = xConsumerUsername_example; // String |
String tenantUsername = tenantUsername_example; // String |
String manamAuth = manamAuth_example; // String |
try {
apiInstance.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addclient");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String apiecoKey = apiecoKey_example; // String |
String contentType = contentType_example; // String |
String xConsumerId = xConsumerId_example; // String |
String xConsumerUsername = xConsumerUsername_example; // String |
String tenantUsername = tenantUsername_example; // String |
String manamAuth = manamAuth_example; // String |
try {
apiInstance.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addclient");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *contentType = contentType_example; //
String *xConsumerId = xConsumerId_example; //
String *xConsumerUsername = xConsumerUsername_example; //
String *tenantUsername = tenantUsername_example; //
String *manamAuth = manamAuth_example; //
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// add client
[apiInstance addclientWith:apiecoKey
contentType:contentType
xConsumerId:xConsumerId
xConsumerUsername:xConsumerUsername
tenantUsername:tenantUsername
manamAuth:manamAuth
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var _ = require('___');
var api = new _.DefaultApi()
var apiecoKey = apiecoKey_example; // {{String}}
var contentType = contentType_example; // {{String}}
var xConsumerId = xConsumerId_example; // {{String}}
var xConsumerUsername = xConsumerUsername_example; // {{String}}
var tenantUsername = tenantUsername_example; // {{String}}
var manamAuth = manamAuth_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class addclientExample
{
public void main()
{
var apiInstance = new DefaultApi();
var apiecoKey = apiecoKey_example; // String |
var contentType = contentType_example; // String |
var xConsumerId = xConsumerId_example; // String |
var xConsumerUsername = xConsumerUsername_example; // String |
var tenantUsername = tenantUsername_example; // String |
var manamAuth = manamAuth_example; // String |
try
{
// add client
apiInstance.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.addclient: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDefaultApi();
$apiecoKey = apiecoKey_example; // String |
$contentType = contentType_example; // String |
$xConsumerId = xConsumerId_example; // String |
$xConsumerUsername = xConsumerUsername_example; // String |
$tenantUsername = tenantUsername_example; // String |
$manamAuth = manamAuth_example; // String |
try {
$api_instance->addclient($apiecoKey, $contentType, $xConsumerId, $xConsumerUsername, $tenantUsername, $manamAuth);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addclient: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $contentType = contentType_example; # String |
my $xConsumerId = xConsumerId_example; # String |
my $xConsumerUsername = xConsumerUsername_example; # String |
my $tenantUsername = tenantUsername_example; # String |
my $manamAuth = manamAuth_example; # String |
eval {
$api_instance->addclient(apiecoKey => $apiecoKey, contentType => $contentType, xConsumerId => $xConsumerId, xConsumerUsername => $xConsumerUsername, tenantUsername => $tenantUsername, manamAuth => $manamAuth);
};
if ($@) {
warn "Exception when calling DefaultApi->addclient: $@\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.DefaultApi()
apiecoKey = apiecoKey_example # String |
contentType = contentType_example # String |
xConsumerId = xConsumerId_example # String |
xConsumerUsername = xConsumerUsername_example # String |
tenantUsername = tenantUsername_example # String |
manamAuth = manamAuth_example # String |
try:
# add client
api_instance.addclient(apiecoKey, contentType, xConsumerId, xConsumerUsername, tenantUsername, manamAuth)
except ApiException as e:
print("Exception when calling DefaultApi->addclient: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|
Content-Type* |
String
Required
|
x-consumer-id* |
String
Required
|
x-consumer-username* |
String
Required
|
tenant_username* |
String
Required
|
manam_auth* |
String
Required
|