Tuesday, 15 May 2012

asp.net mvc 4 - Which Google Data YouTube API Client ID to use? -



asp.net mvc 4 - Which Google Data YouTube API Client ID to use? -

i trying access youtube api using asp.net mvc 4.

should utilize :

client id web application or client id native application?

i tried both:

using client id web application give me error: the redirect uri in request: http://localhost:55193/authorize/ did not match registered redirect uri

using client id native application redirect me page token: http://localhost:55318/authorize/?code=4/uffrxoft7gs28wg_eqa9pq9wvtfn.cgyv3vcjtgkxdjfo-qbmszsijcv9jqi

i confused of google limited documentation.

if you're building webapp, should utilize client id web application. error messages you're seeing indicate app configured to, after authorizing, redirect urls see there, haven't set, in console, permissions allow urls handle callbacks.

visit developer console (https://console.developers.google.com/) , find project, take "credentials" link under apis & auth section. client id you're using, , edit it; there field set in allowed redirect uris (in other words, permissible places oauth calls can redirect after visiting google's auth endpoints).

asp.net-mvc-4 youtube-api youtube-data-api

No comments:

Post a Comment