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?










share|improve this question
























  • 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















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?










share|improve this question
























  • 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













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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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












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






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    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

























    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






    share|improve this answer

























      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






      share|improve this answer























        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






        share|improve this answer












        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 20 at 2:14









        Alina Li

        45225




        45225






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Costa Masnaga

            Fotorealismo

            Sidney Franklin