未找到承载信息 [英] No bearer information found
问题描述
获取Access令牌后,我需要将令牌传递到此网址中 http://api.microsofttranslator.com/V2/Ajax.svc/Translate for
将语言转换为英语,但我收到此错误。
After obtaining Access token, I need to pass the token into this url http://api.microsofttranslator.com/V2/Ajax.svc/Translate for converting the language into english, but I am getting this error.
" ArgumentException:在令牌中找不到承载信息:ID = 3444.V2_Json.Translate.446B53FD"
"ArgumentException: No bearer information found in the token : ID=3444.V2_Json.Translate.446B53FD"
此外,这似乎是网站无效,这是访问令牌的一部分。
Also seem this is site is not working, which is part of the access token.
http://schemas.xmlsoap .org / ws / 2009/11 / swt-token-profile-1.0
http://schemas.xmlsoap.org/ws/2009/11/swt-token-profile-1.0
有什么建议吗?
谢谢
推荐答案
我没有使用Microsoft Translator API的经验,所以希望其他人可以在这个论坛中提供帮助。你添加了"Bearer"吗?您的访问令牌的前缀?每
文档:
使用前缀"承载" +" " + access_token属性的值为
授权标头,用于调用Microsoft Translator API。
Use the prefix "Bearer" + " " + the value of the access_token property as the Authorization header to the calls to the Microsoft Translator API.
I希望这有帮助!
这篇关于未找到承载信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!