Exchange EWS SyncState Id转换为Microsoft Graph API deltatoken

问题描述

我从Exchange EWS迁移到Microsoft Graph API,以同步日历事件和任务。 我可以访问日历,并且有一个“旧的” EWS SyncState ID。 知道我尝试使用得到的deltatoken来获取Graph API:

    .comment {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    flex-wrap: wrap;
    flex-direction: row;
    border: 1px solid #efefef;
}

.com-row {
    width: 100%;
    min-height: 50px;
    flex-wrap: wrap;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.txt {
    width: 550px;
    min-height: 50px;
    margin: 0 5px;
    background-color: red;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    border: none;
}
.com-row h4 {
    flex: 1;
}

我将SyncState ID转换为:

  • 将二进制文件转换为base64
  • 用-和/替换_
  • 替换所有填充(=)字符
  • 在字符串末尾添加一个整数,指示如何删除填充字符(可以为0)

来自:https://referencesource.microsoft.com/#System.Web/Util/HttpEncoder.cs,0e3cb83cf51ca334

是否不能将旧的SyncState ID用作DeltaToken?还是我做错了?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)