我与使用 UCWA v1.0 相关,但找不到任何文档...所有 Micrsoft UCWA 文档似乎都指向 v2.0。例如,以下内容, Lync 2013
我遇到的具体问题与接收传入消息有关。
这对于 v2.0 有很好的记录,
接收 IM。
这引用了使用传入事件响应提供的 href 来“接受”传入消息邀请的需要。
这可以从示例事件响应的以下片段中看出。
"messagingInvitation": {
"direction": "Incoming",
"importance": "Normal",
"threadId": "Ac7bUftwUcVMzgTzRl+OQchCsUn35Q==",
"state": "Connecting",
"subject": "",
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/104/communication/messagingInvitations/6408"
},
"to": {
"href": "/ucwa/oauth/v1/applications/104/people/toshm@contoso.com"
},
"conversation": {
"href": "/ucwa/oauth/v1/applications/104/communication/conversations/eee0"
},
"accept": {
"href": "/ucwa/oauth/v1/applications/104/communication/messagingInvitations/6408/accept"
},
"decline": {
"href": "/ucwa/oauth/v1/applications/104/communication/messagingInvitations/6408/decline"
},
"messaging": {
"href": "/ucwa/oauth/v1/applications/104/communication/conversations/eee0/messaging"
},
"message": {
"href": "data:text/plain;charset=utf-8,Hi+Tosh%0d%0a"
}
},
不幸的是,在 v1.0 中,我没有得到“接受”href。以下片段是我在事件响应中得到的。
"messagingInvitation": {
"direction": "Incoming",
"importance": "Normal",
"threadId": "AdIoE6o5brzgPHMtT/KvKJPoa2JkpQAAJQgQAAB7VhA=",
"state": "Connecting",
"subject": "",
"_links": {
"self": {
"href": "/ucwa/oauth/v0/applications/14263104276/invitations(\u00276855de527cbd42d8a050eb85c6471825\u0027)"
},
"to": {
"href": "/ucwa/oauth/v0/applications/14263104276/people(\u0027test.user1@test.mydomain.au\u0027)"
},
"answeredByContact": {
"href": "/ucwa/oauth/v0/applications/14263104276/people(\u0027test.user1@test.mydomain.au\u0027)"
},
"answer": {
"href": "/ucwa/oauth/v0/applications/14263104276/invitations(\u00276855de527cbd42d8a050eb85c6471825\u0027)/answer"
},
"conversation": {
"href": "/ucwa/oauth/v0/applications/14263104276/conversations(\u0027e8fb2fc1-dcfe-4941-93fa-aaf7e3f63e51\u0027)"
},
"decline": {
"href": "/ucwa/oauth/v0/applications/14263104276/invitations(\u00276855de527cbd42d8a050eb85c6471825\u0027)/decline"
},
"messaging": {
"href": "/ucwa/oauth/v0/applications/14263104276/conversations(\u0027e8fb2fc1-dcfe-4941-93fa-aaf7e3f63e51\u0027)/messaging"
},
"message": {
"href": "cid:81774e95-8783-46b2-85cb-f0c480f26570"
}
},
似乎“答案”href 可能是等效的,但是当我尝试在没有有效负载的情况下进行 POST 时,我得到了 404 Not Found。
当然,缺乏任何文件,使其难以进行。
注意:我可以通过执行 POST 并使用 UCWA v2.0 API 定义的有效负载来使“拒绝”工作。
有没有人有 UCWA v1.0 API 参考?
或者有人知道如何使用 UCWA v1.0 接受/回答消息邀请吗?