Constructor of type HttpHandler not found using the Office 365 API

前端 未结 1 893
名媛妹妹
名媛妹妹 2021-01-16 21:22

I recently started using the Office 365 API and can now successfully authenticate and get a token. Now I want to query the user\'s Exchange for meetings. To do this I run th

1条回答
  •  被撕碎了的回忆
    2021-01-16 21:58

    It turns out there is a typo in the .NET getting started calendar code that uses a bad URI for the constructor of the OutlookServicesClient object. That line should read:

    OutlookServicesClient client = new OutlookServicesClient(
      new Uri("https://outlook.office.com/api/v2.0"),
    

    The sample was missing the v in the URI, which was causing the error.

    0 讨论(0)
提交回复
热议问题