3pillarlabs/omni-calendar

Name: omni-calendar

Owner: 3Pillar Global Open Source

Description: Java API to send calendar request

Created: 2013-03-19 14:33:54.0

Updated: 2017-04-20 20:52:33.0

Pushed: 2013-10-30 09:14:16.0

Homepage: null

Size: 136

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

OMNI-CALENDAR

Omni-calendar is a java library to easily send calendar invitations, whether on Gmail, Outllook or any other mail client. To achieve this, we have provided two implementations:

  1. ICal attachments using email, which supports most mail clients including Gmail and Outlook. The heavy lifting in this case is done by the excellent and powerful iCal4j library.
  2. Creating meeting invitations directly using Google API. This requires the authentication of the sender using OAuth.

More implementations are on our roadmap, for example sending meeting invitation using Exchange Web Services API.

How to Incorporate this library in your application

You can use the library in following ways:-

How to Use

For sending calendar request through Email

First You'll have to create a Instance on EmailInviteImpl class.

Invite invite = new EmailInviteImpl(props);

Constructs an instance of this class. It accepts mail configuration properties.
Parameters:
properties - the mail configuration properties.
Properties should contain
mail.smtp.host, mail.smtp.socketFactory.port, mail.smtp.socketFactory.class, mail.smtp.auth, mail.smtp.port, username, password.

You'll have to call the following function:-

invite.sendInvite(String subject,String description,Participant from,
List<Participant> attendees,Date startDate,Date endDate,String location) throws Exception
For sending google calendar request

First You'll have to create a Instance on GoogleInviteImpl class.

Invite invite = new GoogleInviteImpl(props);

Constructs an instance of this class. It accepts OAuth configuration properties.
Parameters:
properties - the OAUTH configuration properties.
Properties should contain
CLIENT_ID, CLIENT_SECRET, ACCESS_TOKEN, REFRESH_TOKEN, EXPIRY_TIME_IN_MILLIS, APPLICATION_NAME

You'll have to call the following function:-

invite.sendInvite(String subject,String description,Participant from,
List<Participant> attendees,Date startDate,Date endDate,String location) throws Exception

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.