dailyAbsenceGet
Get the absence instances by date and employee
/dailyabsence/{employeeid}
Usage and SDK Samples
curl -X GET -H "Authorization: Basic [[basicHash]]" "https://astrow.net/AstrowIntegrationWebService/v1/dailyabsence/{employeeid}"
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();
String employeeid = employeeid_example; // String | Employee unique identifier
String dBLanguageField = dBLanguageField_example; // String | Astrow DB Language Field
String startDate = startDate_example; // String | Start date, in YYYY-mm-dd format
String endDate = endDate_example; // String | End date, in YYYY-mm-dd format
String employeeKeyName = employeeKeyName_example; // String | One of persnr, badgenr, employeenr, registernr
try {
array[AbsenceInstance] result = apiInstance.dailyAbsenceGet(employeeid, dBLanguageField, startDate, endDate, employeeKeyName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DailyOperationApi#dailyAbsenceGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DailyOperationApi;
public class DailyOperationApiExample {
public static void main(String[] args) {
DailyOperationApi apiInstance = new DailyOperationApi();
String employeeid = employeeid_example; // String | Employee unique identifier
String dBLanguageField = dBLanguageField_example; // String | Astrow DB Language Field
String startDate = startDate_example; // String | Start date, in YYYY-mm-dd format
String endDate = endDate_example; // String | End date, in YYYY-mm-dd format
String employeeKeyName = employeeKeyName_example; // String | One of persnr, badgenr, employeenr, registernr
try {
array[AbsenceInstance] result = apiInstance.dailyAbsenceGet(employeeid, dBLanguageField, startDate, endDate, employeeKeyName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DailyOperationApi#dailyAbsenceGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *employeeid = employeeid_example; // Employee unique identifier
String *dBLanguageField = dBLanguageField_example; // Astrow DB Language Field
String *startDate = startDate_example; // Start date, in YYYY-mm-dd format
String *endDate = endDate_example; // End date, in YYYY-mm-dd format
String *employeeKeyName = employeeKeyName_example; // One of persnr, badgenr, employeenr, registernr
DailyOperationApi *apiInstance = [[DailyOperationApi alloc] init];
// Get the absence instances by date and employee
[apiInstance dailyAbsenceGetWith:employeeid
dBLanguageField:dBLanguageField
startDate:startDate
endDate:endDate
employeeKeyName:employeeKeyName
completionHandler: ^(array[AbsenceInstance] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
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 employeeid = employeeid_example; // {{String}} Employee unique identifier
var dBLanguageField = dBLanguageField_example; // {{String}} Astrow DB Language Field
var startDate = startDate_example; // {{String}} Start date, in YYYY-mm-dd format
var endDate = endDate_example; // {{String}} End date, in YYYY-mm-dd format
var employeeKeyName = employeeKeyName_example; // {{String}} One of persnr, badgenr, employeenr, registernr
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.dailyAbsenceGet(employeeid, dBLanguageField, startDate, endDate, employeeKeyName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class dailyAbsenceGetExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new DailyOperationApi();
var employeeid = employeeid_example; // String | Employee unique identifier
var dBLanguageField = dBLanguageField_example; // String | Astrow DB Language Field
var startDate = startDate_example; // String | Start date, in YYYY-mm-dd format
var endDate = endDate_example; // String | End date, in YYYY-mm-dd format
var employeeKeyName = employeeKeyName_example; // String | One of persnr, badgenr, employeenr, registernr
try
{
// Get the absence instances by date and employee
array[AbsenceInstance] result = apiInstance.dailyAbsenceGet(employeeid, dBLanguageField, startDate, endDate, employeeKeyName);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DailyOperationApi.dailyAbsenceGet: " + 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();
$employeeid = employeeid_example; // String | Employee unique identifier
$dBLanguageField = dBLanguageField_example; // String | Astrow DB Language Field
$startDate = startDate_example; // String | Start date, in YYYY-mm-dd format
$endDate = endDate_example; // String | End date, in YYYY-mm-dd format
$employeeKeyName = employeeKeyName_example; // String | One of persnr, badgenr, employeenr, registernr
try {
$result = $api_instance->dailyAbsenceGet($employeeid, $dBLanguageField, $startDate, $endDate, $employeeKeyName);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DailyOperationApi->dailyAbsenceGet: ', $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 $employeeid = employeeid_example; # String | Employee unique identifier
my $dBLanguageField = dBLanguageField_example; # String | Astrow DB Language Field
my $startDate = startDate_example; # String | Start date, in YYYY-mm-dd format
my $endDate = endDate_example; # String | End date, in YYYY-mm-dd format
my $employeeKeyName = employeeKeyName_example; # String | One of persnr, badgenr, employeenr, registernr
eval {
my $result = $api_instance->dailyAbsenceGet(employeeid => $employeeid, dBLanguageField => $dBLanguageField, startDate => $startDate, endDate => $endDate, employeeKeyName => $employeeKeyName);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DailyOperationApi->dailyAbsenceGet: $@\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()
employeeid = employeeid_example # String | Employee unique identifier
dBLanguageField = dBLanguageField_example # String | Astrow DB Language Field
startDate = startDate_example # String | Start date, in YYYY-mm-dd format
endDate = endDate_example # String | End date, in YYYY-mm-dd format
employeeKeyName = employeeKeyName_example # String | One of persnr, badgenr, employeenr, registernr
try:
# Get the absence instances by date and employee
api_response = api_instance.daily_absence_get(employeeid, dBLanguageField, startDate, endDate, employeeKeyName)
pprint(api_response)
except ApiException as e:
print("Exception when calling DailyOperationApi->dailyAbsenceGet: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| employeeid* |
String
Employee unique identifier
Required
|
| Name | Description |
|---|---|
| DBLanguageField* |
String
Astrow DB Language Field
Required
|
| startDate* |
String
Start date, in YYYY-mm-dd format
Required
|
| endDate* |
String
End date, in YYYY-mm-dd format
Required
|
| employeeKeyName* |
String
One of persnr, badgenr, employeenr, registernr
Required
|