All Projects → a2cart → google-calendar-api

a2cart / google-calendar-api

Licence: other
Demo Project for Google Calendar API Using Spring Boot Rest API with OAuth2

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to google-calendar-api

node-google-calendar
Simple node module that supports Google Calendar API
Stars: ✭ 76 (+204%)
Mutual labels:  calendar, google-calendar, google-api
I3 Agenda
Show your next google calendar event in polybar or i3-bar
Stars: ✭ 62 (+148%)
Mutual labels:  calendar, google-calendar
bhitte-patro
Google Calendar for Nepali Date
Stars: ✭ 25 (+0%)
Mutual labels:  calendar, google-calendar
Add Event To Calendar Docs
📅 Docs how to generate links to add events to online calendar services
Stars: ✭ 193 (+672%)
Mutual labels:  calendar, google-calendar
Outlookcaldavsynchronizer
Sync Outlook with Google, SOGo, Nextcloud or any other CalDAV/CardDAV server
Stars: ✭ 560 (+2140%)
Mutual labels:  calendar, google-calendar
Laravel Google Calendar
Manage events on a Google Calendar
Stars: ✭ 787 (+3048%)
Mutual labels:  calendar, google-calendar
Alfred Gcal
View Google Calendar events in Alfred
Stars: ✭ 147 (+488%)
Mutual labels:  calendar, google-calendar
weather-calendar-feed
Display yr.no weather (supports the entire Earth) forecasts with highly customizable Event titles in your Google Calendar, Android phone, iPhone, Outlook or other iCalendar app
Stars: ✭ 16 (-36%)
Mutual labels:  calendar, google-calendar
datebook
📅 Generates URLs and downloadable ICS files for adding events to popular calendar apps.
Stars: ✭ 273 (+992%)
Mutual labels:  calendar, google-calendar
ics2gcal
Import .ics files into Google Calendar with only two clicks.
Stars: ✭ 21 (-16%)
Mutual labels:  google-calendar, google-api
infocenter
Raspberry Pi weather, calendar, and internet radio with graphical, touch-based interface.
Stars: ✭ 18 (-28%)
Mutual labels:  calendar, google-calendar
taskwarrior-syncall
Synchronization between Taskwarrior tasks and services such as Google Calendar, Notion and Google Keep. Formerly taskw_gcal_sync
Stars: ✭ 151 (+504%)
Mutual labels:  calendar, google-calendar
Fb2cal
Fetch Facebook Birthdays events and create an ICS file for use with calendar apps
Stars: ✭ 335 (+1240%)
Mutual labels:  calendar, google-calendar
Phpcalfeed
A simple PHP script for providing calendar feeds for your website in a variety of different formats including iCalendar, RSS, JSON and XML.
Stars: ✭ 31 (+24%)
Mutual labels:  calendar, google-calendar
calendar-link
📅 Calendar link generator for popular services
Stars: ✭ 193 (+672%)
Mutual labels:  calendar, google-calendar
Calendar.vim
A calendar application for Vim
Stars: ✭ 1,675 (+6600%)
Mutual labels:  calendar, google-calendar
Gam
command line management for Google Workspace
Stars: ✭ 2,558 (+10132%)
Mutual labels:  google-calendar, google-api
aircal
Visualize Airflow's schedule by exporting future DAG runs as events to Google Calendar.
Stars: ✭ 66 (+164%)
Mutual labels:  calendar, google-calendar
Daylight-Calendar-ICS
Daylight Calendar is a dynamically generated .ics calendar that you can host and subscribe to in Google Calendar, iCal, or other calendar software.
Stars: ✭ 22 (-12%)
Mutual labels:  calendar, google-calendar
prodcal ics
Производственный календарь в формате ics
Stars: ✭ 23 (-8%)
Mutual labels:  calendar, google-calendar

google-calendar-api

For more information: http://www.a2cart.com/gmail-api-and-google-calendar-api-spring-boot-and-oauth2/

Demo Project for Google Calendar API Using Spring Boot Rest API with OAuth2

This guide shows you how to build a sample app doing various things with "Google APIs" using OAuth2 and Spring Boot. It starts with a simple, single-provider single-sign on, and works up to a self-hosted OAuth2 Authorization Server with a choice of authentication providers (Fitbit or Facebook or Github). The samples are all single-page apps using Spring Boot and Spring OAuth on the back end. They also all use AngularJS on the front end, but the changes needed to convert to a different JavaScript framework or to use server side rendering would be minimal.

Google Calendar API - Spring Boot and OAuth2

  1. Spring Boot
  2. Rest API
  3. Google Calendar API
  4. OAuth2

What do I do?

I am simple Spring Boot application which secured by Spring Security. Instead of using simple form based security, I am secured by Spring Security OAuth2 and the OAuth provider is Google.

Why am I required?

Developing a Spring Boot web application with Security enabled and integrated with Google is hard to implement. So this is a sample implementation of Spring Boot + Spring Security OAuth2 + Google Provider.

Get it up and runnning

The project is built with Maven so you can run the build using mvn clean build

The application.properties (in src/main/resources) contains the details of the Google application which it uses to authenticate details. Change the values of the following attributes to the values for your application google.client.id google.client.secret and etc.,

###To register a Google App perform the following steps

Go to https://console.developers.google.com and login with your Google account (this will be the developer account and the email of this account will be published when someone tries to authenticate with the Google application)

If you don't have a project create a new one and then click into the project.

In the menu on the left side select "APIs & auth" --> "Credentials" --> "Create a new client ID"

In the popup select the following

Application Type = SpringBoot Web Application

Authorized Javascript Origins = ,

Authorized Redirect URI = , the URI for our application is http://localhost:9000/login/google on different lines.

Copy the client ID and client Secret and update the application.properties

Make sure you update the mandatory values on the "APIs & auth" --> "Consent screen" page as the application will not work without it.

When you have a the Google App configured and the Spring boot application and you navigate to http://localhost:9000/login/google. It will redirect you to a Google login page. Upong login it will ask you to authorize your application for access to your account to get email and profile data. On successful login it will render the basic HTML page which means the authentication was sucessful.

	<dependency>
		<groupId>com.google.apis</groupId>
		<artifactId>google-api-services-calendar</artifactId>
		<version>v3-rev224-1.22.0</version>
	</dependency>

	<!-- Gmail Maven Dependency-->
	<dependency>
		<groupId>com.google.apis</groupId>
		<artifactId>google-api-services-gmail</artifactId>
		<version>v1-rev65-1.18.0-rc</version>
	</dependency>

That’s it. Thank you for reading this post.

Enjoy!!!

www.a2cart.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].