addAuthIdSet
Pridá AuthId set pre pokladňu
Pridá AuthId set pre pokladňu. AuthSet Id nastaví na max(AuthSetId)+1
/authidset/{CashRegisterCode}
Usage and SDK Samples
curl -X POST "http://virtserver.swaggerhub.com/oec/api/authidset/{CashRegisterCode}"
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 cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
AuthIdSet authIdSet = ; // AuthIdSet | AuthIdSet
try {
apiInstance.addAuthIdSet(cashRegisterCode, authIdSet);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addAuthIdSet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
AuthIdSet authIdSet = ; // AuthIdSet | AuthIdSet
try {
apiInstance.addAuthIdSet(cashRegisterCode, authIdSet);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addAuthIdSet");
e.printStackTrace();
}
}
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
AuthIdSet *authIdSet = ; // AuthIdSet
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Pridá AuthId set pre pokladňu
[apiInstance addAuthIdSetWith:cashRegisterCode
authIdSet:authIdSet
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var DatapacOecApi = require('datapac_oec_api');
var api = new DatapacOecApi.DefaultApi()
var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice
var authIdSet = ; // {AuthIdSet} AuthIdSet
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.addAuthIdSet(cashRegisterCode, authIdSet, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class addAuthIdSetExample
{
public void main()
{
var apiInstance = new DefaultApi();
var cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
var authIdSet = new AuthIdSet(); // AuthIdSet | AuthIdSet
try
{
// Pridá AuthId set pre pokladňu
apiInstance.addAuthIdSet(cashRegisterCode, authIdSet);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.addAuthIdSet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$authIdSet = ; // AuthIdSet | AuthIdSet
try {
$api_instance->addAuthIdSet($cashRegisterCode, $authIdSet);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addAuthIdSet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $authIdSet = WWW::SwaggerClient::Object::AuthIdSet->new(); # AuthIdSet | AuthIdSet
eval {
$api_instance->addAuthIdSet(cashRegisterCode => $cashRegisterCode, authIdSet => $authIdSet);
};
if ($@) {
warn "Exception when calling DefaultApi->addAuthIdSet: $@\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()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
authIdSet = # AuthIdSet | AuthIdSet
try:
# Pridá AuthId set pre pokladňu
api_instance.add_auth_id_set(cashRegisterCode, authIdSet)
except ApiException as e:
print("Exception when calling DefaultApi->addAuthIdSet: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| CashRegisterCode* |
String
Kód on-line registračnej pokladnice
Required
|
| Name | Description |
|---|---|
| authIdSet * |