change event for outlook implemented
This commit is contained in:
parent
e92b2e01fc
commit
403823fc62
1 changed files with 8 additions and 3 deletions
|
@ -164,9 +164,14 @@ const MicrosoftOffice365Calendar = (credential): CalendarApiAdapter => {
|
||||||
'Authorization': 'Bearer ' + accessToken
|
'Authorization': 'Bearer ' + accessToken
|
||||||
}
|
}
|
||||||
}).then(handleErrorsRaw)),
|
}).then(handleErrorsRaw)),
|
||||||
updateEvent: (uid: String, event: CalendarEvent) => {
|
updateEvent: (uid: String, event: CalendarEvent) => auth.getToken().then(accessToken => fetch('https://graph.microsoft.com/v1.0/me/calendar/events/' + uid, {
|
||||||
//TODO Implement
|
method: 'PATCH',
|
||||||
},
|
headers: {
|
||||||
|
'Authorization': 'Bearer ' + accessToken,
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
body: JSON.stringify(translateEvent(event))
|
||||||
|
}).then(handleErrorsRaw)),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue