mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 08:24:55 +00:00
- Prepared methods for microsoft authorization and added a button to handle microsoft auth
- Saved the microsoft token to the profile of the current user
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
export async function fetchGoogleCalendarEvents(token, startDate) {
|
||||
export async function fetchGoogleCalendarEvents(token, startDate, endDate) {
|
||||
const response = await fetch(
|
||||
`https://www.googleapis.com/calendar/v3/calendars/primary/events?single_events=true&time_min=${startDate}`,
|
||||
`https://www.googleapis.com/calendar/v3/calendars/primary/events?single_events=true&time_min=${startDate}&time_max=${endDate}`,
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
|
||||
Reference in New Issue
Block a user