简体   繁体   English

没有登录屏幕的Yahoo OAuth2?

[英]Yahoo OAuth2 without login screen?

I'm trying to setup a cronjob that will retrieve our Yahoo Gemini Ad Spend stats daily. 我正在尝试设置一个cronjob,它将每天检索我们的Yahoo Gemini广告支出统计信息。 I'm able to retrieve this data by following the process for PHP ( https://developer.yahoo.com/gemini/guide/custom-reporting.html ) - but am forced to use a browser login before Yahoo will authenticate everything. 我可以通过遵循PHP( https://developer.yahoo.com/gemini/guide/custom-reporting.html )的过程来检索此数据-但在Yahoo对所有内容进行身份验证之前,我不得不使用浏览器登录名。

Obviously this won't work for a cronjob - however I haven't yet seen a solution for skipping this step. 显然,这对于cronjob不起作用-但是我还没有看到跳过此步骤的解决方案。

I see in the FAQ that this may not be possible ( https://developer.yahoo.com/oauth2/guide/faq/ ), but figured others may have come up with a workaround? 我在FAQ中看到这可能是不可能的( https://developer.yahoo.com/oauth2/guide/faq/ ),但想知道其他人可能会提出解决方法吗?

答案是通过手动批准(通过浏览器)检索刷新令牌一次,然后每次(通过CURL到https://api.login.yahoo.com/oauth2 )使用此刷新令牌检索访问令牌。 / get_token )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM