AddOn/Calender_Office365_User/OutlookCalendar.php aktualisiert
This commit is contained in:
parent
0dd90996d7
commit
72436d2e04
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue