Google Calendar API: Same Day Reminder for All-Day Event? - google-calendar-api

I'm using Google Calendar API v3 to create an all-day event with a reminder. The Event resource has a "reminders" property, but you can only specify the number of minutes since the start of the event. It seems, the latest you can set a reminder using the API is midnight the night before the all-day event.
When using the google calendar's web interface you can specify a reminder to happen anytime on the same day as the all-day event. (Enter "0 days" before, and enter any time you want.)
Does anyone know if you can somehow set a reminder to happen on the same day as an all-day event when using the API?

As far as the documentation shows and as you have also mentioned, the latest supported property available is reminders.overrides[].minutes which can be set to a number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
In Overriding default reminders, set reminders.useDefault to false and populate reminders.overrides with the new reminder set.
"reminders": {
"useDefault": "useDefault",
# Overrides can be set if and only if useDefault is false.
"overrides": [
{
"method": "reminderMethod",
"minutes": "reminderMinutes"
},
# ...
]
}

Related

Tracking sign_up event as a Goal in Google Analytics

I wanted to create a Sign up goal in Google Analytics. Adding an event for signup is simple enough:
gtag('event', 'sign_up', { method: 'Direct' });
This successfully created events
However when I try to configure the goal as such:
Nothing happens, the Goal conversion is not counted for the events shown above.
I am trying to follow instructions from here https://developers.google.com/analytics/devguides/collection/gtagjs/events
However I found very little documentation on tracking events as goals.
How do I configure a goal based on the standard engagement events in Google Analytics?
Try to set only Action equal to sign_up without value in Category.
I figured this out. The "Use the Event value as the Goal Value for the conversion" is the problem. Because my event is not sending a value, GA assumes it has zero value and zero value goals are not counted as a conversion.
I fixed this by choosing No for the option and entering 2.5 as the value. Now anyone sending the event counts as a conversion worth $2.5.

How to re-fetch events when you navigate months?

I am working on fullcalendar + Nylas (Calendar Sync service).
Nylas is fetching only 1000 event per request from server. so I need re fetch new events on navigate every month full calendar. I need js code only for fullcalendar refetching event while navigate the months.
The Nylas Events endpoint has the option to filter GET requests by starts_after. You can make a request that searches from the start of the month and filter out any events that happen in the following month.

Full day event not correctly showed on free busy request

i am having an issue when call free busy request on Google Calendar API.
Full day event are not showed correctly.
If I have an event on 23/04/2018 (full day event)
the FreeBusy request return this:
{"calendars":{"null":{"busy":[],"errors":[{"domain":"global","reason":"notFound"}]},"<MYEMAILADDRESS>":{"busy":[{"end":"2018-04-23T08:15:00.000Z","start":"2018-04-23T08:00:00.000Z"}]}},"kind":"calendar#freeBusy","timeMax":"2018-04-24T06:00:00.000Z","timeMin":"2018-04-23T05:00:00.000Z"}
As you can see the start/end time is not useful.
Otherwise if i get the event from event list API, the event has not a time but only date (correct).
Any suggestion?
Thanks

Fullcalendar time interval

I'm using Fullcalendar to show events in my application, but I would also like to use it to schedule resources, but I need to be able to schedule those resources in 5 minute intervals. Can the calendar (week/day view) be configured to render 5 minute timeslots instead of the default 30 minute intervals?
If so, can dragging also be configured at the same interval?
In the version 2.3.2 (I didn't check the previous versions) you can do the following:
slotDuration: '00:30:00',
snapDuration: '00:05:00',
The slotDuration changes the grid display to 30 minutes.
The snapDuration is more interesting: it changes the start and end times in intervals of 5 minutes while you're dragging the event.
Let's say your event starts at 10:00 am and ends at 10:30 am. With the above configuration, if you drag the event up (just a little bit) the new times will be: starts at 10:05 am and ends at 10:35 am, and so on.
You can find more details at http://fullcalendar.io/docs/agenda/snapDuration/.
I'm using version 2.11 of fullcalendar and to set the interval of 5 minutes, i had to set the slotDuration with format 'hh:mm:ss'
$('#mycalendar').fullCalendar({
...
slotDuration: '00:05:00',
...
});
I'm not sure about the dragging, but as for the calendar... Yes you can change the size of the time slot, in your fullcalendar config include the slotMinutes property like,
$('#mycalendar').fullcalendar({
...
slotMinutes: 5,
...
});
I hope this helps!

How to set start and end time for fullcalendar agendaWeek view?

Is it possible to set a start and end time for the agendaWeek view in fullcalendar? I want to save the actual chosen week in a cookie and open this week when the user opens the calendar the next time.
http://arshaw.com/fullcalendar/docs/
How did I do?
First of all - everything can be found in this amazing site.. the plugin actual manual.
http://arshaw.com/fullcalendar/docs/
Then you can use this
.fullCalendar( 'changeView', viewName )
Avaialble views
month available since version 1.3
basicDay - since version 1.3
agendaWeek available since version 1.4
agendaDay - since version 1.4
Apart from that - You can call the gotoDate from a cookie or other variable after the initialisation of the calendar
gotoDate
Moves the calendar to an arbitrary year/month/date.
.fullCalendar( 'gotoDate', year [, month, [ date ]] ) IMPORTANT: month is 0-based, meaning January=0, February=1, etc.
and that should be called form an anonymous function - something in the line of
$("#youCalendarID").fullCalendar( 'gotoDate', getCookie.year, getCookie.Month)
Ya MAN! Dont forget to look at this site
http://arshaw.com/fullcalendar/docs/

Resources