AddOn/Calender_Office365_User/OutlookCalendar.php aktualisiert

This commit is contained in:
olinet 2025-09-07 11:06:05 +02:00
parent 0dd90996d7
commit 72436d2e04
1 changed files with 2 additions and 1 deletions

View File

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