Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

259
Views
Send invites with google calendar API

I have a Java Spring API where I want to integrate Google Calendar.

The task:

  • Basically creating an event for two attendees (users) and send them an invite with the option to accept/decline (standard GCalendar invite)

I tried this example here: https://developers.google.com/google-apps/calendar/quickstart/java

But I think this is not the right one since I authenticate as a user - or do I need this to send them invites via email?

Can anyone point me in the right direction?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Try setting the notification to true.

sendNotifications

  • Whether to send notifications about the creation of the new event. Optional. The default is False.

In the Try this API (Events: insert):

enter image description here

I'm not very familiar with java but try using this code as suggested in a related SO post.

Event createdEvent = calendario.events().insert("some-mail-from-google0@group.calendar.google.com", event).setSendNotifications(true).execute();

Hope this helps.

over 4 years ago · Santiago Trujillo Report

0

sendNotifications is depreciated.

You should use "sendUpdates" in de querystring, e.g. javascript:

    let request = gapi.client.calendar.events.insert({
        "calendarId": workCalendar,
        "resource": newEvent,
        "sendUpdates": "externalOnly"
    });
over 4 years ago · Santiago Trujillo Report

0

you need to add .setSendNotifications(true) just before execute(). this line is not there in google calendar example

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!