Dailymotion回调URL错误 [英] Dailymotion Callback URL Error

查看:118
本文介绍了Dailymotion回调URL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用PHP-SDK连接到Data-API。

I am trying to connect to the Data-API by using the PHP-SDK.

我已经配置了API密钥。但是在尝试连接时会引发异常。消息:

I have configured an API-Key. But when trying to connect an exception is thrown. Message:


client_id'配置不允许此 redirect_uri'。

This redirect_uri' isn't allowed byclient_id' configuration.

我想某种程度上回调URL不正确。

I suppose that somehow the callback URL is not correct.

任何

推荐答案

关于 redirect_uri ,如果在 https://github.com/dailymotion/dailymotion-sdk -php / blob / master / Dailymotion.php#L196 表示:

如果使用授权授予类型,则可以提供此密钥。如果省略,则当前的URL将被使用。在用户重定向到授权页面之前以及在授权页面重定向到该URI之后,请确保该值保持不变(令牌服务器将更改此值)。

"if using authorization grant type, this key can be provided. If omitted, the current URL will be used. Make sure this value stays the same before the user is redirect to the authorization page and after the authorization page redirects to this URI (the token server will change this)."

还应确保该值与在 http://www.dailymotion.com/settings/developer 。它不匹配,将触发您提到的错误。

You should also make sure that this value matches the "callback url" you defined when creating the api key at http://www.dailymotion.com/settings/developer . It not matching, it will trigger the error you mentioned.

这篇关于Dailymotion回调URL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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