diff --git a/AddOn/Calender_Office365_User/OutlookCalendar.php b/AddOn/Calender_Office365_User/OutlookCalendar.php index d23d2db4..229d0816 100644 --- a/AddOn/Calender_Office365_User/OutlookCalendar.php +++ b/AddOn/Calender_Office365_User/OutlookCalendar.php @@ -60,11 +60,12 @@ class OutlookCalendar { // Termin laden public function getEvents($top = 10) { $url = "https://graph.microsoft.com/v1.0/me/events?\$top=" . intval($top); + //return $this->sendRequest($url, $eventData, false, 'GET'); + $headers = [ "Authorization: Bearer " . $this->accessToken, "Accept: application/json" ]; - $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);