/ teams / allMessages创建订阅API的问题

问题描述

我正在尝试创建此订阅

我有这个要求:

{
  "changeType": "created","notificationUrl": "https://xxxx.ngrok.io/Chats","resource": "/teams/allMessages","expirationDateTime": "2020-09-02T20:20:46.9356913Z","clientState": "clienteState","latestSupportedTlsversion": "v1_2","includeResourceData": true,"encryptionCertificate": "{base64encodedCertificate}","encryptionCertificateId": "1063858CD242BF00346FF4E35E...."
}

但返回错误

{
  "error": {
    "code": "InvalidRequest","message": "Certificate validation error: The input is not a valid Base-64 string as it contains a non-base 64 character,more than two padding characters,or an illegal character among the padding characters. ","innerError": {
      "date": "2020-09-02T20:39:41","request-id": "cd73c462-3768-4283-9b6b-b7cd7a83fa0c"
    }
  }
}

我已按照本指南获取证书: “ https://laurakokkarinen.com/authenticating-to-office-365-apis-with-a-certificate-step-by-step/comment-page-2/#creating-the-certificate”

我替换了基数为64的字符串中的字符。 我不知道我的问题是什么

解决方法

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

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

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