Dailymotion Callback URL Error

陌路散爱 提交于 2019-12-25 04:53:16

问题


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

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

This redirect_uri' isn't allowed byclient_id' configuration.

I suppose that somehow the callback URL is not correct.

Any help is appreciated.


回答1:


Regarding the redirect_uri, if is stated at https://github.com/dailymotion/dailymotion-sdk-php/blob/master/Dailymotion.php#L196 that:

"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)."

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.



来源:https://stackoverflow.com/questions/31046405/dailymotion-callback-url-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!