Create a calendar event using Sakai API

57 views
Skip to first unread message

Anh Trinh

unread,
Jul 26, 2018, 11:06:16 PM7/26/18
to Sakai Development
Hi,

My team is developing an LTI tool for Sakai. We were able to retrieve the list of members by reading the source code for the BasicLTI Servlet (located at `basiclti/basclti-blis/src/java/org/sakaiproject/blti/ServiceServlet.java`).

Our next step is to create a calendar event on behalf of the currently logged in user. Here is where we got completely stuck. 

Any lead would be very helpful, thank you!

Anh Trinh

unread,
Jul 29, 2018, 10:44:30 PM7/29/18
to Sakai Development
Hi Sakai-Devs,

We could get an OAuth1 access token for a user (via oAuth Admin tool) and this token does have the `calendar.new` right, but we still don't know how to go from here. Is it even possible to create a calendar event by calling Sakai API?

Thanks,
Anh

Matthew Buckett

unread,
Jul 30, 2018, 4:28:31 AM7/30/18
to Anh Trinh, Sakai Development
On 30 Jul 2018, at 03:44, Anh Trinh <anh....@stanyangroup.com> wrote:
>
> Hi Sakai-Devs,
>
> We could get an OAuth1 access token for a user (via oAuth Admin tool) and this token does have the `calendar.new` right, but we still don't know how to go from here. Is it even possible to create a calendar event by calling Sakai API?

On the latest Sakai code (master) it doesn’t look like the standard /direct endpoints support it:

https://trunk-mysql.nightly.sakaiproject.org/direct/calendar/describe

as there’s no create entity support and I don’t think the web services have support for creating calendar events.
Adding support to org.sakaiproject.calendar.entityproviders.CalendarEventEntityProvider so that is can create simple events would be reasonably easy.


Matthew Buckett, Senior VLE Developer

Systems and Applications, Technology Enhanced Learning
IT Services, University of Oxford
13 Banbury Road, OX2 6NN
Tel: 01865 283349

Anh Trinh

unread,
Jul 30, 2018, 4:31:00 AM7/30/18
to Sakai Development, anh....@stanyangroup.com
Thanks Matthew, much appreciated!

Laura Gekeler

unread,
Jul 30, 2018, 6:59:21 AM7/30/18
to Anh Trinh, Sakai Development
Ahn,
Are you using tsugi as your development platform?


--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.
--
Laura Gekeler
LMS Administrator
Learning Platforms
Apereo Foundation Board '14-2020
University of Notre Dame

Anh Trinh

unread,
Jul 31, 2018, 10:12:05 AM7/31/18
to Sakai Development, anh....@stanyangroup.com
Hi Igekeler, 

No we are not using Tsugi. Our LTI tool is written on Rails.

Do you mean we can get access to the creating calendar events feature if we use Tsugi? That would be strange but I'm open to ideas.

Laura Gekeler

unread,
Jul 31, 2018, 3:27:47 PM7/31/18
to Anh Trinh, sakai-dev
No, sorry, I didn't mean to imply Tsugi would help with that. A new webservice/API for Sakai would likely be needed. At least that's what I understood Matthew Buckett to be saying.
Laura Gekeler
LMS Administrator
Learning Platforms
Apereo Foundation Board '14-2020
University of Notre Dame


Reply all
Reply to author
Forward
0 new messages