putDailyAbsence
Puts absence for employee.
/dailyabsence
Usage and SDK Samples
curl -X PUT -H "Authorization: Basic [[basicHash]]" "https://astrow.net/AstrowIntegrationWebService/v1/dailyabsence"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DailyOperationApi;
import java.io.File;
import java.util.*;
public class DailyOperationApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DailyOperationApi apiInstance = new DailyOperationApi();
array[Absence] body = ; // array[Absence] |
String employeeKeyName = employeeKeyName_example; // String | One of persnr, badgenr, employeenr, registernr
String includeNonWorkingDays = includeNonWorkingDays_example; // String | Whether to add absence in non working days
String dBLanguageField = dBLanguageField_example; // String | Astrow DB Language Field
try {
apiInstance.putDailyAbsence(body, employeeKeyName, includeNonWorkingDays, dBLanguageField);
} catch (ApiException e) {
System.err.println("Exception when calling DailyOperationApi#putDailyAbsence");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DailyOperationApi;
public class DailyOperationApiExample {
public static void main(String[] args) {
DailyOperationApi apiInstance = new DailyOperationApi();
array[Absence] body = ; // array[Absence] |
String employeeKeyName = employeeKeyName_example; // String | One of persnr, badgenr, employeenr, registernr
String includeNonWorkingDays = includeNonWorkingDays_example; // String | Whether to add absence in non working days
String dBLanguageField = dBLanguageField_example; // String | Astrow DB Language Field
try {
apiInstance.putDailyAbsence(body, employeeKeyName, includeNonWorkingDays, dBLanguageField);
} catch (ApiException e) {
System.err.println("Exception when calling DailyOperationApi#putDailyAbsence");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
array[Absence] *body = ; //
String *employeeKeyName = employeeKeyName_example; // One of persnr, badgenr, employeenr, registernr
String *includeNonWorkingDays = includeNonWorkingDays_example; // Whether to add absence in non working days
String *dBLanguageField = dBLanguageField_example; // Astrow DB Language Field
DailyOperationApi *apiInstance = [[DailyOperationApi alloc] init];
// Puts absence for employee.
[apiInstance putDailyAbsenceWith:body
employeeKeyName:employeeKeyName
includeNonWorkingDays:includeNonWorkingDays
dBLanguageField:dBLanguageField
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AstrowCloudRestApi = require('astrow_cloud_rest_api');
var defaultClient = AstrowCloudRestApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'
var api = new AstrowCloudRestApi.DailyOperationApi()
var body = ; // {{array[Absence]}}
var employeeKeyName = employeeKeyName_example; // {{String}} One of persnr, badgenr, employeenr, registernr
var includeNonWorkingDays = includeNonWorkingDays_example; // {{String}} Whether to add absence in non working days
var dBLanguageField = dBLanguageField_example; // {{String}} Astrow DB Language Field
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.putDailyAbsence(bodyemployeeKeyNameincludeNonWorkingDaysdBLanguageField, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class putDailyAbsenceExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new DailyOperationApi();
var body = new array[Absence](); // array[Absence] |
var employeeKeyName = employeeKeyName_example; // String | One of persnr, badgenr, employeenr, registernr
var includeNonWorkingDays = includeNonWorkingDays_example; // String | Whether to add absence in non working days
var dBLanguageField = dBLanguageField_example; // String | Astrow DB Language Field
try
{
// Puts absence for employee.
apiInstance.putDailyAbsence(body, employeeKeyName, includeNonWorkingDays, dBLanguageField);
}
catch (Exception e)
{
Debug.Print("Exception when calling DailyOperationApi.putDailyAbsence: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\ApiDailyOperationApi();
$body = ; // array[Absence] |
$employeeKeyName = employeeKeyName_example; // String | One of persnr, badgenr, employeenr, registernr
$includeNonWorkingDays = includeNonWorkingDays_example; // String | Whether to add absence in non working days
$dBLanguageField = dBLanguageField_example; // String | Astrow DB Language Field
try {
$api_instance->putDailyAbsence($body, $employeeKeyName, $includeNonWorkingDays, $dBLanguageField);
} catch (Exception $e) {
echo 'Exception when calling DailyOperationApi->putDailyAbsence: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DailyOperationApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
my $api_instance = WWW::SwaggerClient::DailyOperationApi->new();
my $body = [WWW::SwaggerClient::Object::array[Absence]->new()]; # array[Absence] |
my $employeeKeyName = employeeKeyName_example; # String | One of persnr, badgenr, employeenr, registernr
my $includeNonWorkingDays = includeNonWorkingDays_example; # String | Whether to add absence in non working days
my $dBLanguageField = dBLanguageField_example; # String | Astrow DB Language Field
eval {
$api_instance->putDailyAbsence(body => $body, employeeKeyName => $employeeKeyName, includeNonWorkingDays => $includeNonWorkingDays, dBLanguageField => $dBLanguageField);
};
if ($@) {
warn "Exception when calling DailyOperationApi->putDailyAbsence: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.DailyOperationApi()
body = # array[Absence] |
employeeKeyName = employeeKeyName_example # String | One of persnr, badgenr, employeenr, registernr
includeNonWorkingDays = includeNonWorkingDays_example # String | Whether to add absence in non working days
dBLanguageField = dBLanguageField_example # String | Astrow DB Language Field
try:
# Puts absence for employee.
api_instance.put_daily_absence(body, employeeKeyName, includeNonWorkingDays, dBLanguageField)
except ApiException as e:
print("Exception when calling DailyOperationApi->putDailyAbsence: %s\n" % e)
Parameters
Name | Description |
---|---|
employeeKeyName* |
String
One of persnr, badgenr, employeenr, registernr
Required
|
includeNonWorkingDays* |
String
Whether to add absence in non working days
Required
|
DBLanguageField* |
String
Astrow DB Language Field
Required
|
Name | Description |
---|---|
body * |