Discussions
Getting attendances via API fails
6 months ago by Stefan Upphoff
When trying to query the employees attendances the API delivers an invalid answer.
Here's the answer, delivered by the API:
Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery Object
(
[companyId:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] => ...
[employeeIds:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] => Illuminate\Support\Collection Object
(
[items:protected] => Array
(
[0] => ...
)
[escapeWhenCastingToString:protected] =>
)
[absenceTypeIds:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] => Illuminate\Support\Collection Object
(
[items:protected] => Array
(
)
[escapeWhenCastingToString:protected] =>
)
[absencePeriodIds:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] => Illuminate\Support\Collection Object
(
[items:protected] => Array
(
)
[escapeWhenCastingToString:protected] =>
)
[status:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] => Illuminate\Support\Collection Object
(
[items:protected] => Array
(
)
[escapeWhenCastingToString:protected] =>
)
[considerDeletionPending:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] =>
[startDateRange:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] => Carbon\Carbon Object
(
[endOfTime:protected] =>
[startOfTime:protected] =>
[constructedObjectId:protected] => ...
[localMonthsOverflow:protected] =>
[localYearsOverflow:protected] =>
[localStrictModeEnabled:protected] =>
[localHumanDiffOptions:protected] =>
[localToStringFormat:protected] =>
[localSerializer:protected] =>
[localMacros:protected] =>
[localGenericMacros:protected] =>
[localFormatFunction:protected] =>
[localTranslator:protected] =>
[dumpProperties:protected] => Array
(
[0] => date
[1] => timezone_type
[2] => timezone
)
[dumpLocale:protected] =>
[dumpDateProperties:protected] =>
[date] => 2024-05-27 00:00:00.000000
[timezone_type] => 3
[timezone] => UTC
)
[endDateRange:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] => Carbon\Carbon Object
(
[endOfTime:protected] =>
[startOfTime:protected] =>
[constructedObjectId:protected] => ...
[localMonthsOverflow:protected] =>
[localYearsOverflow:protected] =>
[localStrictModeEnabled:protected] =>
[localHumanDiffOptions:protected] =>
[localToStringFormat:protected] =>
[localSerializer:protected] =>
[localMacros:protected] =>
[localGenericMacros:protected] =>
[localFormatFunction:protected] =>
[localTranslator:protected] =>
[dumpProperties:protected] => Array
(
[0] => date
[1] => timezone_type
[2] => timezone
)
[dumpLocale:protected] =>
[dumpDateProperties:protected] =>
[date] => 2024-05-27 23:59:59.999999
[timezone_type] => 3
[timezone] => UTC
)
[halfDayStart:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] =>
[halfDayEnd:Personio\HRM\AbsencePeriods\Queries\AbsencePeriodsQuery:private] =>
)
{[.....]}