我正在为UCWA Skype for business API开发一个REST应用程序。 我已经完成了UCWA应用程序的身份验证,授权,令牌生成和访问。
我还可以从我的终端向其他用户发送消息IM。
但是接收消息IM功能不起作用。
我遵循的步骤是
1)生成访问令牌并访问我的ucwa应用程序。 2)使用makeMeAvailable API使用户在线。 3)获取对ucwa应用程序生成的请求。 4)并在步骤3中调用事件href链接。 5)并在第4步中调用事件href链接,但其给发件人数组为空,没有传入或messageInvitation链接。
其他信息: 我没有收到任何发送方数组或它为空。而且我会定期调用reportMyActivity api来保持用户在线。
,并且调用后的事件链接不包含https://docs.microsoft.com/en-us/skype-sdk/ucwa/receiveanim中指定的任何传入消息。
下面是我得到的事件对象,它没有任何传入对象。
请指导并帮助我。
{
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/12345/events?ack=1&key=c2lwOnRlc3R1c2VyQGltaW1vYmlsZW1vYmkub25taWNyb3NvZnQuY29t-12345-ZGVmYXVsdA%3D%3D"
},
"next": {
"href": "/ucwa/oauth/v1/applications/12345/events?ack=2&key=c2lwOnRlc3R1c2VyQGltaW1vYmlsZW1vYmkub25taWNyb3NvZnQuY29t-12345-ZGVmYXVsdA%3D%3D"
}
},
"sender": [
{
"rel": "me",
"href": "/ucwa/oauth/v1/applications/12345/me",
"events": [
{
"link": {
"rel": "me",
"href": "/ucwa/oauth/v1/applications/12345/me"
},
"type": "updated"
},
{
"link": {
"rel": "presence",
"href": "/ucwa/oauth/v1/applications/12345/me/presence"
},
"type": "added"
},
{
"link": {
"rel": "note",
"href": "/ucwa/oauth/v1/applications/12345/me/note"
},
"type": "added"
},
{
"link": {
"rel": "location",
"href": "/ucwa/oauth/v1/applications/12345/me/location"
},
"type": "added"
}
]
},
{
"rel": "communication",
"href": "/ucwa/oauth/v1/applications/12345/communication",
"events": [
{
"link": {
"rel": "communication",
"href": "/ucwa/oauth/v1/applications/12345/communication"
},
"_embedded": {
"communication": {
"videoBasedScreenSharing": "Enabled",
"86473502-15a2-4cc8-b99f-586034e87311": "please pass this in a PUT request",
"supportedModalities": [
"Messaging"
],
"supportedMessageFormats": [
"Plain",
"Html"
],
"audioPreference": "PhoneAudio",
"publishEndpointLocation": false,
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/12345/communication"
},
"mediaRelayAccessToken": {
"href": "/ucwa/oauth/v1/applications/12345/communication/mediaRelayAccessToken"
},
"mediaPolicies": {
"href": "/ucwa/oauth/v1/applications/12345/mediaPolicies"
},
"conversations": {
"href": "/ucwa/oauth/v1/applications/12345/communication/conversations?filter=active"
},
"startMessaging": {
"href": "/ucwa/oauth/v1/applications/12345/communication/messagingInvitations",
"revision": "2"
},
"startAudioVideo": {
"href": "/ucwa/oauth/v1/applications/12345/communication/audioVideoInvitations",
"revision": "2"
},
"startOnlineMeeting": {
"href": "/ucwa/oauth/v1/applications/12345/communication/onlineMeetingInvitations?onlineMeetingUri=adhoc"
},
"joinOnlineMeeting": {
"href": "/ucwa/oauth/v1/applications/12345/communication/onlineMeetingInvitations"
},
"missedItems": {
"href": "/ucwa/oauth/v1/applications/12345/communication/missedItems"
}
},
"rel": "communication",
"etag": "4194241727"
}
},
"type": "updated"
}
]
}
]
}