API.pm: new helper module for Synology modules
git-svn-id: https://svn.fhem.de/fhem/trunk@22654 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user