Plans - Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist     RegisterRegister  ProfileProfile   Log inLog in
PLANS API

 
Post new topic   Reply to topic    Plans - Forum Forum Index » Questions
View previous topic :: View next topic  
Author Message
danny_mk



Joined: 22 Aug 2006
Posts: 10

PostPosted: Tue Aug 22, 2006    Post subject: PLANS API Reply with quote

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
View user's profile Send private message Yahoo Messenger
daltonlp
Site Admin


Joined: 24 Nov 2003
Posts: 1499

PostPosted: Tue Aug 22, 2006    Post subject: Reply with quote

Regrettably, Plans currently has no API Sad

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
View user's profile Send private message
danny_mk



Joined: 22 Aug 2006
Posts: 10

PostPosted: Tue Aug 22, 2006    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Plans - Forum Forum Index -> Questions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group / Oranja by Lessthaneric.net