向BING TRANSLATOR访问令牌请求令牌服务 [英] REQUEST TO THE TOKEN SERVICE for BING TRANSLATOR access token

查看:70
本文介绍了向BING TRANSLATOR访问令牌请求令牌服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以在OBJECTIVE C中向我提供他的代码样本,他/她将请求发送给令牌服务。我几天来一直在努力解决这个问题。我得到了客户端ID和密码并注册了我的应用程序并且跟随所有
来自网络上每个可能的论坛的指示,似乎没有任何帮助我。我发送的请求看起来像这样:  https://datamarket.accesscontrol.windows.net/v2/OAuth2-13? grant_type = client_credentials& client_id = d6894bba-7k6c-49bf-ba8b-d01050057d83& client_secret = nOzeykgEbajk8TyAJtYaZ9pqzoDs4q6AK5hfGTrRzZL =& scope = http://api.microsofttranslator.com


我得到了覆盖的URL编码和所有内容,仍然无法正常工作......我稍后会发布有关无效请求的错误信息。请帮助我:)

解决方案

嗨Galadriel14,


以下网站是否有用?


http://blogs.msdn.com/b/translation/p/ gettingstarted1.aspx


http://blogs.msdn.com/b/translation/p/ gettingstarted2.aspx


我们用于获取访问令牌的SDK站点可用
此处


让我们知道它是怎么回事。
  谢谢。  Takako(微软翻译团队)

Can someone please give me a sample of his code in OBJECTIVE C in which he/she sends the request to the token service. I've been struggling with this problem for days now. I got the client id and secret  and registered my app  and followed all the instuctions from every possible forum on the net and nothing seems to help me. The request that i've been sending lookes like this :  https://datamarket.accesscontrol.windows.net/v2/OAuth2-13?grant_type=client_credentials&client_id=d6894bba-7k6c-49bf-ba8b-d01050057d83&client_secret=nOzeykgEbajk8TyAJtYaZ9pqzoDs4q6AK5hfGTrRzZL=&scope=http://api.microsofttranslator.com

I got the URL encoding covered and everything, still doesn't work... I'll post the error later it said something about invalid request .Please help me :)

解决方案

Hi Galadriel14,

Would the following sites be helpful?

http://blogs.msdn.com/b/translation/p/gettingstarted1.aspx

http://blogs.msdn.com/b/translation/p/gettingstarted2.aspx

Our SDK site for obtaining access token is available here.

Let us know how it goes.  Thanks.  Takako (Microsoft Translator team)


这篇关于向BING TRANSLATOR访问令牌请求令牌服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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