public class GCalendarAPI
This class is the entry point into the Google Calendar API. From this class, you can create, access, and delete Calendars. This class can be accessed by providing a GOAuth2 object to the getInstance() method.
Modifier and Type | Field and Description |
---|---|
com.google.api.services.calendar.Calendar | CalendarAPI! The Java Google Calendar API Object for direct access to the API. |
static BBjString | ReadOnlyScope!="https://www.googleapis.com/auth/calendar.readonly" Scope for read-only access to user's calendar. This is a static field that can be accessed for setting the scope of OAuth2.0 authorization. |
static BBjString | ReadWriteScope!="https://www.googleapis.com/auth/calendar" Scope for read-write access to user's calendar. This is a static field that can be accessed for setting the scope of OAuth2.0 authorization. |
Constructor and Description |
---|
GCalendarAPI(BBjString oauthToken!) This constructor for the Google Calendar API takes a GOAuth2 object. It is assumed that authorization has already been performed in such a way that the token is already available. |
Modifier and Type | Method and Description |
---|---|
void | addACL(GACL acl!) or relocating.) |
void | addCalendar(GCalendar calendar!) Add Calendar. (Not implemented. Subject to removal or relocating.) |
void | deleteACL(BBjString aclId!) Delete Access Control List. (Not implemented. Subject to removal or relocating.) |
void | deleteCalendar(BBjString calendarId!) Delete Calendar. (Not implemented. Subject to removal or relocating.) |
GACL | getACL(String aclId!) Read Access Control List. (Not implemented. Subject to removal or relocating.) |
BBjVector | getACLs() Get all Access Control Lists. (Not implemented. Subject to removal or relocating.) |
Gcom.google.api.services.calendar.Calendar | getCalendar(BBjString calendarId!) Retrieves the GCalendar corresponding to calendarId! |
List | getCalendars() Retrieves list of all GCalendars associated with user's Google Account. This includes Calendars visible to the user. |
Gcom.google.api.services.calendar.Calendar | getPrimaryCalendar() Get the primary calendar. This is the user's default calendar when they navigate to https://www.google.com/calendar |
void | updateACL(GACL acl!) Update Access Control List. (Not implemented. Subject to removal or relocating.) |
void | updateCalendar(GCalendar calendar!) Update Calendar. (Not implemented. Subject to removal or relocating.) |
public com.google.api.services.calendar.Calendar CalendarAPI!
The Java Google Calendar API Object for direct access to the API.
public static BBjString ReadOnlyScope!="https://www.googleapis.com/auth/calendar.readonly"
Scope for read-only access to user's calendar. This is a static field that can be accessed for setting the scope of OAuth2.0 authorization.
public static BBjString ReadWriteScope!="https://www.googleapis.com/auth/calendar"
Scope for read-write access to user's calendar. This is a static field that can be accessed for setting the scope of OAuth2.0 authorization.
public GCalendarAPI(BBjString oauthToken!)
This constructor for the Google Calendar API takes a GOAuth2 object. It is assumed that authorization has already been performed in such a way that the token is already available.
public void addACL(GACL acl!)
or relocating.)
acl!
Access Control List to add.public void addCalendar(GCalendar calendar!)
Add Calendar. (Not implemented. Subject to removal or relocating.)
calendar!
GCalendar to add to the list of the Google Account's calendars.public void deleteACL(BBjString aclId!)
Delete Access Control List. (Not implemented. Subject to removal or relocating.)
aclId!
ID of Access Control List that should be deleted.public void deleteCalendar(BBjString calendarId!)
Delete Calendar. (Not implemented. Subject to removal or relocating.)
calendarId!
ID of GCalendar to delete.public GACL getACL(String aclId!)
Read Access Control List. (Not implemented. Subject to removal or relocating.)
aclId!
ID of Access Control List to access.public BBjVector getACLs()
Get all Access Control Lists. (Not implemented. Subject to removal or relocating.)
public Gcom.google.api.services.calendar.Calendar getCalendar(BBjString calendarId!)
Retrieves the GCalendar corresponding to calendarId!
ID
of the GCalendar to retrieve. !ERROR=300 A Google Calendar API Error has occurred
https://developers.google.com/google-apps/calendar/v3/reference/calendarList/get
public List getCalendars()
Retrieves list of all GCalendars associated with user's Google Account. This includes Calendars visible to the user.
https://developers.google.com/google-apps/calendar/v3/reference/calendarList/get
public Gcom.google.api.services.calendar.Calendar getPrimaryCalendar()
Get the primary calendar. This is the user's default calendar when they navigate to https://www.google.com/calendar
public void updateACL(GACL acl!)
Update Access Control List. (Not implemented. Subject to removal or relocating.)
acl!
Modified Access Control List used to update the corresponding item in the internal list of ACLs.public void updateCalendar(GCalendar calendar!)
Update Calendar. (Not implemented. Subject to removal or relocating.)
calendar!
Modified GCalendar to replace the corresponding GCalendar with.