何时为 Skype for Business 创建应用程序

When to create an application for Skype for Business

我正在编写一个 iOS 应用程序,它将使用来自 Skype for Business 的数据,并且正在遵循 Microsoft 的指南 Create an application,必须在能够使用 API的。

我不清楚什么时候创建应用程序?是吗:

这里的应用更像是一种"virtual object (the application)" 需要在此处创建,直到您可以开始使用 Skype for Business (SfB) 功能。

所以您的问题不太容易回答,因为它不清楚您希望执行什么(例如,您是否希望登录、执行某些任务然后再次注销?)。所以这在一定程度上取决于您的应用程序以及您使用的功能。因此它没有 "only once ever",因为 "virtual object (the application)" 在某个时间被破坏(例如,您的应用程序崩溃并且 SfB 服务器不再收到 "yes we are still here and are listening" 请求)。这是由 lifetime of a token which is eight (8) hours for authenticated users 控制的,因此您需要更新它,否则您的应用程序将停止工作。所以它更像是一种 "per taskuser & login & time" 方法......

Microsoft 在以下 statement 中也解释了上述内容:"This is how you register your application with UCWA 2.0 as an agent of the user whose credentials you obtained in a previous step."

如果您正在创建将与 Skype for Business 服务器交互的 iOS 应用程序,您可以使用 Skype for Business App SDK for iOS. This client library handles anonymous meeting joins for users who are not homed on a Skype for Business server.
For all other Skype for Business features, you'll need to use an iOS REST library of your choice. The REST endpoint that works best for a client application is actually the Skype Web SDK. The Skype Trusted Application API 专为您的服务器与之通信的服务器到服务器通信而设计Skype for Business Online 实例。在这种情况下,您的服务器获取并处理 Skype 数据,然后将其提供给 iOS 应用程序等客户端。
除非你打算在 Skype for Business Online 和你的 iOS 应用程序之间创建一个中间层,否则你应该使用 Web SDK。