我正在为商务应用开发ucwa skype。我能够成功授权,验证和发送消息。
但是,当我从最终用户接收消息时,我无法接受我作为JSON响应接收到的messagesInsulationInvitation链接。我已经按照文档中指定的方式正确放置了参数和标题。
接收即时消息: https://docs.microsoft.com/en-us/skype-sdk/ucwa/receiveanim
我得到了
**Request Try 1:**
Post https://fe1.contoso.com:443/ucwa/v1/applications/192/communication/invitations/665/accept HTTP/1.1
Authorization: Bearer cwt=PHNhbWw6QXNzZXJ0aW9uIHhtbG5...uZm8
**Request Try 2:**
POST https://lyncweb.contoso.com/ucwa/oauth/v1/applications/104256996066/communication/messagingInvitations/64088d10047844518b75b392c5b04e39/accept?sessionContext=myRandomStringHere
HTTP/1.1 Authorization: Bearer cwt=AAEB...buHc
**Error I get n postman**
{
"code": "notfound",
"message": "The requested resource couldn't be found",
"reasonId" : "1000262"
}
其他信息:
我通过调用报告我的活动api连续使用户联机,因此用户和应用程序处于联机状态,并且我收到传入对象,其连接状态,接受请求失败后,它从连接变为失败。 / p>
传入对象:
{
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/10750308652/events?ack=2&key=c2lwOnNmYi51c2VyM0BpbmZyYWNhc3QuY29t-10750308652-ZGVmYXVsdA%3D%3D"
},
"next": {
"href": "/ucwa/oauth/v1/applications/10750308652/events?ack=3&key=c2lwOnNmYi51c2VyM0BpbmZyYWNhc3QuY29t-10750308652-ZGVmYXVsdA%3D%3D"
}
},
"sender": [
{
"rel": "communication",
"href": "/ucwa/oauth/v1/applications/10750308652/communication",
"events": [
{
"link": {
"rel": "messagingInvitation",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/messagingInvitations/e3bd5bdb0ced4c5196a739043ea9df4a"
},
"status": "Failure",
"_embedded": {
"messagingInvitation": {
"direction": "Incoming",
"importance": "Normal",
"threadId": "AdVRh6lLuyx89UIMRVigtqNRydAuJgBSeZvgAAAHJoA=",
"state": "Failed",
"subject": "Conversation with sfb user3",
"remoteClient": "SfB",
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/messagingInvitations/e3bd5bdb0ced4c5196a739043ea9df4a"
},
"to": {
"href": "/ucwa/oauth/v1/applications/10750308652/people/sfb.user3@mydomainname.com"
},
"conversation": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222"
},
"messaging": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222/messaging"
},
"message": {
"href": "data:text/plain;charset=utf-8,Sub"
}
},
"_embedded": {
"from": {
"inLobby": false,
"sourceNetwork": "SameEnterprise",
"anonymous": false,
"local": false,
"name": "sfb user2",
"uri": "sip:sfb.user2@mydomainname.com",
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222/participants/c2zilnvzzxiyqgluznjhy2fzdc5jb201"
},
"conversation": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222"
},
"contact": {
"href": "/ucwa/oauth/v1/applications/10750308652/people/sfb.user2@mydomainname.com"
},
"contactPresence": {
"href": "/ucwa/oauth/v1/applications/10750308652/people/sfb.user2@mydomainname.com/presence"
},
"contactPhoto": {
"href": "/ucwa/oauth/v1/applications/10750308652/photos/sfb.user2@mydomainname.com"
}
},
"rel": "participant"
}
},
"rel": "messagingInvitation"
}
},
"reason": {
"code": "Informational",
"subcode": "Missed",
"message": null,
"reasonId": "282"
},
"type": "completed"
}
]
},
{
"rel": "conversation",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222",
"events": [
{
"link": {
"rel": "messaging",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222/messaging"
},
"_embedded": {
"messaging": {
"state": "Disconnected",
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222/messaging"
},
"conversation": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222"
}
},
"rel": "messaging"
}
},
"type": "updated"
},
{
"link": {
"rel": "localParticipant",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222/participants/c2zilnvzzxizqgluznjhy2fzdc5jb201",
"title": "sfb user3"
},
"type": "deleted"
}
]
},
{
"rel": "communication",
"href": "/ucwa/oauth/v1/applications/10750308652/communication",
"events": [
{
"link": {
"rel": "conversation",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/f553fee8-c6c2-47e8-b54c-adc6829da222"
},
"type": "deleted"
},
{
"link": {
"rel": "missedItems",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/missedItems"
},
"_embedded": {
"missedItems": {
"missedConversationsCount": 1,
"unreadMissedConversationsCount": 1,
"voiceMailsCount": 0,
"unreadVoicemailsCount": 0,
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/missedItems"
}
},
"rel": "missedItems"
}
},
"type": "updated"
},
{
"link": {
"rel": "messagingInvitation",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/messagingInvitations/2e0899cca5c6457cb4a5ab9039ac4688"
},
"_embedded": {
"messagingInvitation": {
"direction": "Incoming",
"importance": "Normal",
"threadId": "AdVS0dTaaltopKkMTyq4DM5iVWASgQ==",
"state": "Connecting",
"subject": "",
"remoteClient": "SfB",
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/messagingInvitations/2e0899cca5c6457cb4a5ab9039ac4688"
},
"to": {
"href": "/ucwa/oauth/v1/applications/10750308652/people/sfb.user3@mydomainname.com"
},
"conversation": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830"
},
"accept": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/messagingInvitations/2e0899cca5c6457cb4a5ab9039ac4688/accept"
},
"decline": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/messagingInvitations/2e0899cca5c6457cb4a5ab9039ac4688/decline"
},
"messaging": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/messaging"
},
"message": {
"href": "data:text/plain;charset=utf-8,Is+poor"
}
},
"_embedded": {
"from": {
"sourceNetwork": "SameEnterprise",
"anonymous": false,
"local": false,
"name": "sfb user2",
"uri": "sip:sfb.user2@mydomainname.com",
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/participants/c2zilnvzzxiyqgluznjhy2fzdc5jb201"
},
"conversation": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830"
},
"contact": {
"href": "/ucwa/oauth/v1/applications/10750308652/people/sfb.user2@mydomainname.com"
},
"contactPresence": {
"href": "/ucwa/oauth/v1/applications/10750308652/people/sfb.user2@mydomainname.com/presence"
}
},
"rel": "participant"
}
},
"rel": "messagingInvitation"
}
},
"type": "started"
},
{
"link": {
"rel": "conversation",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830"
},
"_embedded": {
"conversation": {
"state": "Incoming",
"threadId": "AdVS0dTaaltopKkMTyq4DM5iVWASgQ==",
"subject": "",
"activeModalities": [
"Messaging"
],
"importance": "Normal",
"recording": false,
"videoScreenSharing": "Disabled",
"rdpSupport": "Disabled",
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830"
},
"applicationSharing": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/applicationSharing"
},
"audioVideo": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/audioVideo"
},
"dataCollaboration": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/dataCollaboration"
},
"messaging": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/messaging"
},
"phoneAudio": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/phoneAudio"
}
},
"rel": "conversation"
}
},
"type": "added"
}
]
},
{
"rel": "conversation",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830",
"events": [
{
"link": {
"rel": "localParticipant",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/participants/c2zilnvzzxizqgluznjhy2fzdc5jb201",
"title": "sfb user3"
},
"_embedded": {
"localParticipant": {
"sourceNetwork": "SameEnterprise",
"anonymous": false,
"local": true,
"name": "sfb user3",
"uri": "sip:sfb.user3@mydomainname.com",
"_links": {
"self": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/participants/c2zilnvzzxizqgluznjhy2fzdc5jb201"
},
"conversation": {
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830"
},
"me": {
"href": "/ucwa/oauth/v1/applications/10750308652/me"
}
},
"rel": "participant"
}
},
"type": "added"
},
{
"link": {
"rel": "participant",
"href": "/ucwa/oauth/v1/applications/10750308652/communication/conversations/dbe8d667-f775-47fa-acda-1125f460d830/participants/c2zilnvzzxiyqgluznjhy2fzdc5jb201",
"title": "sfb user2"
},
"type": "added"
}
]
}
]
}
我希望在调用accept api后会接受邀请,请帮助我。
谢谢