无法获取Skype for Business的应用程序网址 [英] Not Able to Get Applications Url for Skype for Business

查看:218
本文介绍了无法获取Skype for Business的应用程序网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照以下说明在Skype for Business Online中使用REST API:

I'm trying to use the REST API in Skype for Business Online by following the instructions here: https://msdn.microsoft.com/EN-US/library/office/mt590891(v=office.16).aspx.

我首先致电发现服务,然后为用户找回发现URL;对我来说看起来像这样: https://webdir0b.online.lync.com/Autodiscover/AutodiscoverService .svc/root/oauth/user

I make the first call to the discovery service, and then get the discovery URL back for the user; it looks like this for me: https://webdir0b.online.lync.com/Autodiscover/AutodiscoverService.svc/root/oauth/user

然后我致电Azure,并成功取回 https://webdir0b.online.lync的访问令牌. .com .下一步是解决问题-我再次向用户请求发现网址,并包含访问令牌.调用成功返回,但是问题在于有效负载中没有文档中所述的应用程序" URL.而是返回与我调用通用发现终结点时相同的确切信息( https ://webdir.online.lync.com/autodiscover/autodiscoverservice.svc/root ).我已经三遍检查过我是否在调用正确的端点,所以...关于为什么在为用户调用发现URL时为什么我没有得到预期的有效载荷的任何提示?

I then make the call to Azure and successfully get an access token back for https://webdir0b.online.lync.com. The next step is where things break down - I make a request again to the discovery Url for the user and include the access token. The call returns successfully, but the problem is that it doesn't have the "applications" url in the payload as described in the documentation. Instead it returns the same exact info as I got when I called the general discovery endpoint (https://webdir.online.lync.com/autodiscover/autodiscoverservice.svc/root). I've triple checked that I'm calling the correct endpoint so...any hints as to why I'm not getting the expected payload when calling the discovery Url for the user?

推荐答案

我将尽力回答尽可能短的时间-我做到了.第一个问题-当结果中没有应用程序"时,您应该使用重定向"值.继续遵循并针对它进行GET(使用获取访问令牌和添加auth标头的过程),最终您应该获得应用程序Url.第二个问题-获取应用程序URL后,您需要获取另一个访问令牌并将应用程序URL的主机名用作资源ID.然后,您可以发布并创建您的应用.真希望这对某人有所帮助. :-)

I'll try and answer as short as possible - I got this working. 1st issue - when you don't get "applications" in the result, you should have a "redirect" value instead. Keep following that and doing your GET against it (using the process of getting access tokens and adding the auth header) and eventually you should get the applications Url. 2nd issue - after you get your applications URL, you need to go get another access token and use the host name of the applications URL as the resource ID. Then you can post and create your app. Really hope this helps someone. :-)

这篇关于无法获取Skype for Business的应用程序网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆