Hot to enable Cloud Elements Microsoft Graph Calendar webhooks for all calendars?












1















By default, when I integrate my Microsoft account with cloud elements:



https://developers.cloud-elements.com/docs/elements/microsoftgraph/



I only get notifications for my default calendar. But, in fact, I have like 5+ calendars. I want to get notifications about changes in all of them.



For now, I can only think of making a new end-point that accepts calendar ID and then I invoke this endpoint with the result of invocation:



GET /calendars


But, this looks like a hack. Is there a better solution to listen to all the calendars that I have using Cloud Elements?










share|improve this question























  • Did you want to get the notifications for your calendar when the calendar changed?

    – Keen Jin
    Nov 20 '18 at 7:45
















1















By default, when I integrate my Microsoft account with cloud elements:



https://developers.cloud-elements.com/docs/elements/microsoftgraph/



I only get notifications for my default calendar. But, in fact, I have like 5+ calendars. I want to get notifications about changes in all of them.



For now, I can only think of making a new end-point that accepts calendar ID and then I invoke this endpoint with the result of invocation:



GET /calendars


But, this looks like a hack. Is there a better solution to listen to all the calendars that I have using Cloud Elements?










share|improve this question























  • Did you want to get the notifications for your calendar when the calendar changed?

    – Keen Jin
    Nov 20 '18 at 7:45














1












1








1








By default, when I integrate my Microsoft account with cloud elements:



https://developers.cloud-elements.com/docs/elements/microsoftgraph/



I only get notifications for my default calendar. But, in fact, I have like 5+ calendars. I want to get notifications about changes in all of them.



For now, I can only think of making a new end-point that accepts calendar ID and then I invoke this endpoint with the result of invocation:



GET /calendars


But, this looks like a hack. Is there a better solution to listen to all the calendars that I have using Cloud Elements?










share|improve this question














By default, when I integrate my Microsoft account with cloud elements:



https://developers.cloud-elements.com/docs/elements/microsoftgraph/



I only get notifications for my default calendar. But, in fact, I have like 5+ calendars. I want to get notifications about changes in all of them.



For now, I can only think of making a new end-point that accepts calendar ID and then I invoke this endpoint with the result of invocation:



GET /calendars


But, this looks like a hack. Is there a better solution to listen to all the calendars that I have using Cloud Elements?







outlook integration microsoft-graph cloud-elements






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 19 '18 at 11:39









dveloppdvelopp

1,65511728




1,65511728













  • Did you want to get the notifications for your calendar when the calendar changed?

    – Keen Jin
    Nov 20 '18 at 7:45



















  • Did you want to get the notifications for your calendar when the calendar changed?

    – Keen Jin
    Nov 20 '18 at 7:45

















Did you want to get the notifications for your calendar when the calendar changed?

– Keen Jin
Nov 20 '18 at 7:45





Did you want to get the notifications for your calendar when the calendar changed?

– Keen Jin
Nov 20 '18 at 7:45












2 Answers
2






active

oldest

votes


















1














According to your description, I assume you want to get the notifications for your calendar when the calendar changed.



We can use the subscription endpoint to get the notifications. For more detail about this endpoint, we can refer to this document






share|improve this answer
























  • What end-point in Cloud Elements should I call for this or I have to create my own that just invokes the one that you mentioned?

    – dvelopp
    Nov 20 '18 at 9:42



















1














In the Cloud Elements UI, if you select the instance and click the api docs you will see four sections "information", "setup", "resources", and "models". Select resources and you will see one that has POST /webhooks
This is the call the Cloud Elements sends on webhook provision. If you want to change the body of the webhook go to the PreRequest Hook where you will see javascript that is creating a post body that will be sent to Microsoft.



By default the body you see in the javascript looks like:



var body={
"changeType": "created,updated,deleted",
"notificationUrl": "{webhookCallbackUrl}",
"resource": "/me/events",
"expirationDateTime": newDate
}


If you want to change what resources you get notification for you can do so in this body and using the documentation that was provided in the previous answer






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',
    autoActivateHeartbeat: false,
    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%2f53373862%2fhot-to-enable-cloud-elements-microsoft-graph-calendar-webhooks-for-all-calendars%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    According to your description, I assume you want to get the notifications for your calendar when the calendar changed.



    We can use the subscription endpoint to get the notifications. For more detail about this endpoint, we can refer to this document






    share|improve this answer
























    • What end-point in Cloud Elements should I call for this or I have to create my own that just invokes the one that you mentioned?

      – dvelopp
      Nov 20 '18 at 9:42
















    1














    According to your description, I assume you want to get the notifications for your calendar when the calendar changed.



    We can use the subscription endpoint to get the notifications. For more detail about this endpoint, we can refer to this document






    share|improve this answer
























    • What end-point in Cloud Elements should I call for this or I have to create my own that just invokes the one that you mentioned?

      – dvelopp
      Nov 20 '18 at 9:42














    1












    1








    1







    According to your description, I assume you want to get the notifications for your calendar when the calendar changed.



    We can use the subscription endpoint to get the notifications. For more detail about this endpoint, we can refer to this document






    share|improve this answer













    According to your description, I assume you want to get the notifications for your calendar when the calendar changed.



    We can use the subscription endpoint to get the notifications. For more detail about this endpoint, we can refer to this document







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 20 '18 at 8:04









    Keen JinKeen Jin

    670116




    670116













    • What end-point in Cloud Elements should I call for this or I have to create my own that just invokes the one that you mentioned?

      – dvelopp
      Nov 20 '18 at 9:42



















    • What end-point in Cloud Elements should I call for this or I have to create my own that just invokes the one that you mentioned?

      – dvelopp
      Nov 20 '18 at 9:42

















    What end-point in Cloud Elements should I call for this or I have to create my own that just invokes the one that you mentioned?

    – dvelopp
    Nov 20 '18 at 9:42





    What end-point in Cloud Elements should I call for this or I have to create my own that just invokes the one that you mentioned?

    – dvelopp
    Nov 20 '18 at 9:42













    1














    In the Cloud Elements UI, if you select the instance and click the api docs you will see four sections "information", "setup", "resources", and "models". Select resources and you will see one that has POST /webhooks
    This is the call the Cloud Elements sends on webhook provision. If you want to change the body of the webhook go to the PreRequest Hook where you will see javascript that is creating a post body that will be sent to Microsoft.



    By default the body you see in the javascript looks like:



    var body={
    "changeType": "created,updated,deleted",
    "notificationUrl": "{webhookCallbackUrl}",
    "resource": "/me/events",
    "expirationDateTime": newDate
    }


    If you want to change what resources you get notification for you can do so in this body and using the documentation that was provided in the previous answer






    share|improve this answer




























      1














      In the Cloud Elements UI, if you select the instance and click the api docs you will see four sections "information", "setup", "resources", and "models". Select resources and you will see one that has POST /webhooks
      This is the call the Cloud Elements sends on webhook provision. If you want to change the body of the webhook go to the PreRequest Hook where you will see javascript that is creating a post body that will be sent to Microsoft.



      By default the body you see in the javascript looks like:



      var body={
      "changeType": "created,updated,deleted",
      "notificationUrl": "{webhookCallbackUrl}",
      "resource": "/me/events",
      "expirationDateTime": newDate
      }


      If you want to change what resources you get notification for you can do so in this body and using the documentation that was provided in the previous answer






      share|improve this answer


























        1












        1








        1







        In the Cloud Elements UI, if you select the instance and click the api docs you will see four sections "information", "setup", "resources", and "models". Select resources and you will see one that has POST /webhooks
        This is the call the Cloud Elements sends on webhook provision. If you want to change the body of the webhook go to the PreRequest Hook where you will see javascript that is creating a post body that will be sent to Microsoft.



        By default the body you see in the javascript looks like:



        var body={
        "changeType": "created,updated,deleted",
        "notificationUrl": "{webhookCallbackUrl}",
        "resource": "/me/events",
        "expirationDateTime": newDate
        }


        If you want to change what resources you get notification for you can do so in this body and using the documentation that was provided in the previous answer






        share|improve this answer













        In the Cloud Elements UI, if you select the instance and click the api docs you will see four sections "information", "setup", "resources", and "models". Select resources and you will see one that has POST /webhooks
        This is the call the Cloud Elements sends on webhook provision. If you want to change the body of the webhook go to the PreRequest Hook where you will see javascript that is creating a post body that will be sent to Microsoft.



        By default the body you see in the javascript looks like:



        var body={
        "changeType": "created,updated,deleted",
        "notificationUrl": "{webhookCallbackUrl}",
        "resource": "/me/events",
        "expirationDateTime": newDate
        }


        If you want to change what resources you get notification for you can do so in this body and using the documentation that was provided in the previous answer







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 7 at 4:23









        Jamie TJamie T

        334




        334






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373862%2fhot-to-enable-cloud-elements-microsoft-graph-calendar-webhooks-for-all-calendars%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

            How to send String Array data to Server using php in android

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Is anime1.com a legal site for watching anime?