How to obtain Calender ID through Google Calendar API - google-api

I have doubt regarding Google calendar API.I had created calendar using google calendar developer guide. I want to retrieve the calendar Id through program. How is it possible?

The final line in the developer guide is:
CalendarEntry returnedCalendar = myService.insert(postUrl, calendar);
Look at the ID of returnedCalendar:
String id = returnedCalender.getId();

Related

Outlook / Exchange API (Microsoft Graph?)

I am making a quick program that can check another users Outlook calendar and book an appointment. The booking part is fine, but I am looking at a way to return other users calendar information, without having to link a calendar to Outlook first.
I was thinking that there would be an API or a way to access this information either via 365 or the exchange server. There is this (https://learn.microsoft.com/en-us/previous-versions/office/office-365-api/?redirectedfrom=MSDN#Getevents) but it doesn't seem to do what I am after and is also deprecated with an end date within a year
I have read about Microsoft Graph but in reading it refers to 'users calendar', can this do calendars for a specific user that isn't me?
GET /me/calendar/calendarView?startDateTime={start_datetime}&endDateTime={end_datetime}
If so, does anyone know how?
Thank you
You can access user's calendar by calling the following endpoint
GET /users/{id | userPrincipalName}/calendarView?startDateTime={start_datetime}&endDateTime={end_datetime}
Resource:
List calendarView

How to set label for Hangouts Meeting via API

Background
I'm trying to create an appointment calendar using GSuite and Google Calendar API. When a user (no Google account and outside the GSuite organization) creates an appointment, I'm trying to create a Calendar event on the Calendar of an organization member via the Google Calendar API and generate a Hangouts meeting link.
Problem
I can create the event and the Hangouts meeting link, but I cannot create a custom label for the video link. I was able to make it slightly unique by adding an attendee with a fake email xczczf#example.com to John Doe's calendar to get a label of doe-j-xcz, but I would like full control over the label if possible.
Attempted Solutions That Didn't Work
Create the event and provide a conferenceData.createRequest and an entryPoint with the desired label.
Create the event first and then send a patch with the information described in 1
Changing the conferenceId
After messing around with the API Explorer, a custom label can be made by:
Creating the Cal event and adding a meeting link using a createRequest
Send a Patch with conferenceData.conferenceId set to the unique label value

How to find people who clicked on a specific campaign using Mailchimp API v3

How do I find the list of all people who clicked on a specific campaign through Mailchimp API v3?
I think Email Activity is what you are looking for. the emails field contains all emails that opened the campain.

insert a calendarlist how to get argument calendarid?

in my windows phone application
when i was try use Google Calendar API insert a CalendarList as Fllow link: https://developers.google.com/google-apps/calendar/v3/reference/calendarList/insert
about reqeust it was need a calendar id. when i insert some format string . it was tip some reaource can't be found.
how to define a google calendar id in my windows phone application? or
is there have some interface automatically generated?
any suggestion?
The Calendar ID refers to the particular calendar you are trying to access. For any primary calendar, it will be your email address. For secondary calendar, you can find the Calendar ID in the Calendar setting. Under Calendar details, you will see a the Calendar address where the Calendar ID is located.

Google Calendar API V3 - Default or Primary Calendar

I'm attempting to use VBA to access the Google Calendar API V3. I can't figure out how to determine which calendar a new event should be written to by default. Is there no such thing as a default or primary calendar under V3 of the Google Calendar API?
Will the CalendarID for the default calendar always be the user's email address?
To answer your question, no, the email address is not the default CalendarID. You can user "primary" as the default CalendarID. If you want, you can get a list of all the user's Calendar ID's and even create/delete calendars. Check out https://developers.google.com/google-apps/calendar/v3/reference/calendarList
you can just use the string "primary" for the CalendarID property to get the default calendar

Resources