本文介绍了尝试构建服务器端API以编程方式创建在线会议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 嘿那里, 过去几天我实施了针对Skype for Business Online和AzureAD的UCWA自动发现/验证流程。当我完成并拥有应用程序目录的URL(+ OAuth2凭据)后,我将它们保存到我们的内部系统中。 所以稍后我想用这些数据创建在线会议。应用程序目录的URL如下所示: https:\ / \ / webpoolam42e10.infra.lync.com \ / ucwa \ / oauth \ / v1 \ / applications \ / 101331226048 \ / onlineMeetings\ / myOnlineMeeting s $ 如果我在检索数据的最初几分钟内这样做,它就可以了。但后来看来,应用程序目录已经消失了。我得到了这样的答复: body" :" {\" code \":\" NotFound \",\" subcode \\ \\":\" ApplicationNotFound \",\" message \":\"发生了错误。请重试。如果问题仍然存在,请与支持小组联系。\"} 状态代码为404。 稍后我甚至往往会得到401错误,这意味着未经授权。 我怀疑应用程序服务器正在消失,只是暂时可用。我有一个刷新令牌和一个有效的访问令牌,所以这不会是一个问题。我不知道那里发生了什么,并且无法在文档中找到帮助。所以也许你有一个你有任何建议 - 我真的很感激! 解决方案 创建后,应用程序仅在特定时间范围内有效,除非它们被主动使用。 如果启动事件通道(向事件资源发出请求)你必须保持它。 如果未能在5分钟获得上一个响应的情况下向事件资源发送新请求,将导致应用程序被删除。 如果您没有启动事件通道,则应用程序将只保留2个小时,然后它将被删除。 我相信如果你调用makemeavailable还有额外的超时值,但我不知道那些副手。 Hey there,the last couple of days I implemented the autodiscovery/auth flow for UCWA against Skype for Business Online and AzureAD. When I'm done and having the URL to the application directory (+ the OAuth2 Credentials) I save those into our internal system. So later on I want to create online meetings with this data. The URL to the applications directory looks like this: https:\/\/webpoolam42e10.infra.lync.com\/ucwa\/oauth\/v1\/applications\/101331226048\/onlineMeetings\/myOnlineMeetingsIf I do this within the first minutes of retrieving the data it works just fine. But later on it seems, that the application directory is gone. I'm getting this response:body":"{\"code\":\"NotFound\",\"subcode\":\"ApplicationNotFound\",\"message\":\"An error occurred. Please retry. If the problem persists, contact your support team.\"}Status Code is 404.Later on I even tend to get 401 errors that mean unauthorized.I suspect the application server going away and only being temporarily available. I got a refresh token and a valid access token, so this wont be a problem. I've got no clue what is going on there and wasnt able to find help in the docs. So maybe one of you got any advice - I'd be really thankful! 解决方案 Once created, applications are only live for a certain time frame unless they are being actively used.If you start the event channel (make a request to the events resource) you must maintain it. Failure to send a new request to the events resource with 5 minutes of getting the previous response will cause the application to be deleted.If you do not start the event channel, then the application will only remain for 2 hours, and then it will be deleted.I believe there are additional timeout values if you call makemeavailable, but I don't know those off-hand. 这篇关于尝试构建服务器端API以编程方式创建在线会议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-03 18:23