使用用户名& amp;进行Oauth访问密码 [英] Oauth access with username & Password

查看:84
本文介绍了使用用户名& amp;进行Oauth访问密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我使用报告功能使用PHP访问Bing ads api。我想从命令行运行它,所以它不可能做回调等以获得正确的身份验证码。是否可以做资源所有者密码凭证
格兰特?


提前致谢

解决方案

很棒的问题。您的Bing Ads用户需要通过网络浏览器控件进行身份验证并提供应用程序的同意,以便
管理Bing Ads帐户至少一次。然后通过
授权代码授予流程
,您可以使用刷新令牌运行无人参与的应用程序。如果您有任何疑问,请与我们联系。


祝你好运,


Eric


Hello,

I am accessing the Bing ads api with PHP using the reporting functionality. I want to run this from the command line, so it's not really possible to do callbacks etc for getting a proper authenticationcode. Is it possible to do Resource owner password credential Grant?

Thanks in advance

解决方案

Great question. Your Bing Ads user will need to authenticate and provide consent for the application to manage Bing Ads accounts at least once via a web browser control. Then via Authorization Code Grant Flow, you can use the refresh token to run an unattended application. Please let me know if you have any questions.

Best regards,

Eric


这篇关于使用用户名& amp;进行Oauth访问密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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