| View previous topic :: View next topic |
| Author |
Message |
danny_mk
Joined: 22 Aug 2006 Posts: 10
|
Posted: Tue Aug 22, 2006 Post subject: PLANS API |
|
|
Is the Plans API docuemted anywhere?
If it has a documented API it will be a bit easier to fix some of the problems that appear in these forums otherwise it will take time to read through the code and figure out how to do simple tasks.
If I have another product and want to integrate Plans as the calendar it would be nice to do:
use Plans::API;
my $events = Plans::API::getEvents(calendar_id,start_date,end_date);
and stuff like that!
Has anyone looked into this?
Thank you. |
|
| Back to top |
|
 |
daltonlp Site Admin
Joined: 24 Nov 2003 Posts: 1482
|
Posted: Tue Aug 22, 2006 Post subject: |
|
|
Regrettably, Plans currently has no API
The closest thing is the functions in plans_lib.pl, which are used for loading & saving events and calendars. If someone were to create an API interface, it would basically be wrapper functions for most of what's in plans_lib.pl.
It's a good idea. What basic API functions would you be using?
- Lloyd |
|
| Back to top |
|
 |
danny_mk
Joined: 22 Aug 2006 Posts: 10
|
Posted: Tue Aug 22, 2006 Post subject: |
|
|
Well, I would like to see stuff like:
my %events = Plans::API::getEvents(
calendar_id => 1, # this could be [1,2,3] to select multiple calendars
start_date => '02-12-2006',
end_date => '05-22-2006',
);
Where the events hash would contain:
$events{'ID'}->{'START_DATE"}
$events{'ID'}->{'END_DATE"}
$events{'ID'}->{'EVENT_TITLE"}
$events{'ID'}->{'EVENT_DETAILS"}
$events{'ID'}->{'EVENT_ICON"}
and ID would be the actual event id.
That would help me for now but other methods would be great!
Does that help? |
|
| Back to top |
|
 |
|