diff --git a/fhem/lib/FHEM/SynoModules/API.pm b/fhem/lib/FHEM/SynoModules/API.pm index be6070989..291c1418b 100644 --- a/fhem/lib/FHEM/SynoModules/API.pm +++ b/fhem/lib/FHEM/SynoModules/API.pm @@ -41,6 +41,7 @@ our %EXPORT_TAGS = (all => [@EXPORT_OK]); my %hspecs = ( # Hash der verfügbaren API-Specs surveillance => {fn => "_staticSurveillance" }, chat => {fn => "_staticChat" }, + calendar => {fn => "_staticCalendar" }, ); ######################################################################## @@ -108,4 +109,21 @@ sub _staticChat { ## no critic "not used" return \%hapi; } +######################################################################## +# Liefert die statischen Informationen der Calendar API +######################################################################## +sub _staticCalendar { ## no critic "not used" + my %hapi = ( + INFO => { NAME => "SYNO.API.Info" }, + AUTH => { NAME => "SYNO.API.Auth" }, # API used to perform session login and logout + CAL => { NAME => "SYNO.Cal.Cal" }, # API to manipulate calendar + EVENT => { NAME => "SYNO.Cal.Event" }, # Provide methods to manipulate events in the specific calendar + SHARE => { NAME => "SYNO.Cal.Sharing" }, # Get/set sharing setting of calendar + TODO => { NAME => "SYNO.Cal.Todo" }, # Provide methods to manipulate events in the specific calendar + + ); + +return \%hapi; +} + 1; \ No newline at end of file