How to get Outlook calendar events to sync with PHP calendar
up vote
-1
down vote
favorite
How do I get Outlook events calendar and sync with PHP calendar?
I have tried this:
var req = new XMLHttpRequest();
req.open("POST", "https://graph.microsoft.com/v1.0/me/events");
req.setRequestHeader("authorization", "Bearer " + accessToken);
req.setRequestHeader("content-type", "application/json");
req.onload = function (e) {
if (req.readyState === 4) {
// Check if the get was successful
if (req.status === 201) {
console.log(req.response);
}
}
};
req.onerror = function (e) {
// Catching errors
};
req.send(jsonData);
Any idea about the PHP example?
php outlook-restapi
add a comment |
up vote
-1
down vote
favorite
How do I get Outlook events calendar and sync with PHP calendar?
I have tried this:
var req = new XMLHttpRequest();
req.open("POST", "https://graph.microsoft.com/v1.0/me/events");
req.setRequestHeader("authorization", "Bearer " + accessToken);
req.setRequestHeader("content-type", "application/json");
req.onload = function (e) {
if (req.readyState === 4) {
// Check if the get was successful
if (req.status === 201) {
console.log(req.response);
}
}
};
req.onerror = function (e) {
// Catching errors
};
req.send(jsonData);
Any idea about the PHP example?
php outlook-restapi
This looks like javascript. what have you tried in PHP?
– JoSSte
Nov 19 at 6:38
no idea about php code, if you have idea about it, please suggest it.
– Vijay
Nov 19 at 6:41
1
i have loads of idea, but why are you showing javascript code in a PHP question? have you tried to search SO for "call rest service from PHP"? a quick search brings up stackoverflow.com/questions/9802788/call-a-rest-api-in-php I am just trying to figure out what you are actually asking.
– JoSSte
Nov 19 at 6:44
My question is i want to sync outlook calendar events to my PHP calendar.
– Vijay
Nov 19 at 7:10
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
How do I get Outlook events calendar and sync with PHP calendar?
I have tried this:
var req = new XMLHttpRequest();
req.open("POST", "https://graph.microsoft.com/v1.0/me/events");
req.setRequestHeader("authorization", "Bearer " + accessToken);
req.setRequestHeader("content-type", "application/json");
req.onload = function (e) {
if (req.readyState === 4) {
// Check if the get was successful
if (req.status === 201) {
console.log(req.response);
}
}
};
req.onerror = function (e) {
// Catching errors
};
req.send(jsonData);
Any idea about the PHP example?
php outlook-restapi
How do I get Outlook events calendar and sync with PHP calendar?
I have tried this:
var req = new XMLHttpRequest();
req.open("POST", "https://graph.microsoft.com/v1.0/me/events");
req.setRequestHeader("authorization", "Bearer " + accessToken);
req.setRequestHeader("content-type", "application/json");
req.onload = function (e) {
if (req.readyState === 4) {
// Check if the get was successful
if (req.status === 201) {
console.log(req.response);
}
}
};
req.onerror = function (e) {
// Catching errors
};
req.send(jsonData);
Any idea about the PHP example?
php outlook-restapi
php outlook-restapi
edited Nov 19 at 20:45
Peter Mortensen
13.3k1983111
13.3k1983111
asked Nov 19 at 5:58
Vijay
1
1
This looks like javascript. what have you tried in PHP?
– JoSSte
Nov 19 at 6:38
no idea about php code, if you have idea about it, please suggest it.
– Vijay
Nov 19 at 6:41
1
i have loads of idea, but why are you showing javascript code in a PHP question? have you tried to search SO for "call rest service from PHP"? a quick search brings up stackoverflow.com/questions/9802788/call-a-rest-api-in-php I am just trying to figure out what you are actually asking.
– JoSSte
Nov 19 at 6:44
My question is i want to sync outlook calendar events to my PHP calendar.
– Vijay
Nov 19 at 7:10
add a comment |
This looks like javascript. what have you tried in PHP?
– JoSSte
Nov 19 at 6:38
no idea about php code, if you have idea about it, please suggest it.
– Vijay
Nov 19 at 6:41
1
i have loads of idea, but why are you showing javascript code in a PHP question? have you tried to search SO for "call rest service from PHP"? a quick search brings up stackoverflow.com/questions/9802788/call-a-rest-api-in-php I am just trying to figure out what you are actually asking.
– JoSSte
Nov 19 at 6:44
My question is i want to sync outlook calendar events to my PHP calendar.
– Vijay
Nov 19 at 7:10
This looks like javascript. what have you tried in PHP?
– JoSSte
Nov 19 at 6:38
This looks like javascript. what have you tried in PHP?
– JoSSte
Nov 19 at 6:38
no idea about php code, if you have idea about it, please suggest it.
– Vijay
Nov 19 at 6:41
no idea about php code, if you have idea about it, please suggest it.
– Vijay
Nov 19 at 6:41
1
1
i have loads of idea, but why are you showing javascript code in a PHP question? have you tried to search SO for "call rest service from PHP"? a quick search brings up stackoverflow.com/questions/9802788/call-a-rest-api-in-php I am just trying to figure out what you are actually asking.
– JoSSte
Nov 19 at 6:44
i have loads of idea, but why are you showing javascript code in a PHP question? have you tried to search SO for "call rest service from PHP"? a quick search brings up stackoverflow.com/questions/9802788/call-a-rest-api-in-php I am just trying to figure out what you are actually asking.
– JoSSte
Nov 19 at 6:44
My question is i want to sync outlook calendar events to my PHP calendar.
– Vijay
Nov 19 at 7:10
My question is i want to sync outlook calendar events to my PHP calendar.
– Vijay
Nov 19 at 7:10
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
If you want get Outlook calendar events to sync with PHP calendar, you need to specify the Prefer: odata.track-changes
header in all sync requests except those that include a skipToken that is returned from a previous sync request.
For more information, you could refer to the below link:
Sync events
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
If you want get Outlook calendar events to sync with PHP calendar, you need to specify the Prefer: odata.track-changes
header in all sync requests except those that include a skipToken that is returned from a previous sync request.
For more information, you could refer to the below link:
Sync events
add a comment |
up vote
0
down vote
If you want get Outlook calendar events to sync with PHP calendar, you need to specify the Prefer: odata.track-changes
header in all sync requests except those that include a skipToken that is returned from a previous sync request.
For more information, you could refer to the below link:
Sync events
add a comment |
up vote
0
down vote
up vote
0
down vote
If you want get Outlook calendar events to sync with PHP calendar, you need to specify the Prefer: odata.track-changes
header in all sync requests except those that include a skipToken that is returned from a previous sync request.
For more information, you could refer to the below link:
Sync events
If you want get Outlook calendar events to sync with PHP calendar, you need to specify the Prefer: odata.track-changes
header in all sync requests except those that include a skipToken that is returned from a previous sync request.
For more information, you could refer to the below link:
Sync events
answered Nov 20 at 2:14
Alina Li
45225
45225
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53369067%2fhow-to-get-outlook-calendar-events-to-sync-with-php-calendar%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This looks like javascript. what have you tried in PHP?
– JoSSte
Nov 19 at 6:38
no idea about php code, if you have idea about it, please suggest it.
– Vijay
Nov 19 at 6:41
1
i have loads of idea, but why are you showing javascript code in a PHP question? have you tried to search SO for "call rest service from PHP"? a quick search brings up stackoverflow.com/questions/9802788/call-a-rest-api-in-php I am just trying to figure out what you are actually asking.
– JoSSte
Nov 19 at 6:44
My question is i want to sync outlook calendar events to my PHP calendar.
– Vijay
Nov 19 at 7:10