php - How to use universal oauth redirect url? -
i making wordpress plugin youtube data.
for need user's google
api
.
i using google-api-php-client-0.6.6
.
and made client id @ https://code.google.com/apis/console/
my question how can user api without giving redirect url. because plugin use many users.
$redirect = filter_var('http://' . $_server['http_host'] . $_server['php_self'], filter_sanitize_url); $client->setredirecturi($redirect);
if use code it's not working , give me error
the redirect uri in request: http://www.thewpdeveloper.com/wp-admin/admin.php did not match registered redirect uri
i know if give redirect url @ google
api
console working. don't want fix url. possible?
if want data tube why use google api? can you tube api , data want it...
Comments
Post a Comment