Welcome Guest, Not a member yet? Register   Sign In
YouTube API upload - querystring response problem
#1

[eluser]GlennJ[/eluser]
I'm trying to use the YouTube API upload function on the site I'm developing.

Now this would normally be pretty easy to do, but the YouTube API sends back a querystring response and it doesn't look like you can change it!

See http://code.google.com/apis/youtube/1.0/...wserUpload

My site is not using the querystring and I really don't want to either. So how can I over come this problem? Can I turn on querystrings for just one controller?

All suggestions are very welcome!

Thanks
#2

[eluser]happyd119[/eluser]
Hi GlennJ,

I have similar question when I tried to use YouTube API with CodeIgniter. Did you ever get a solution on how to handle this?

Very appreciated any suggestion!

Thanks
#3

[eluser]GlennJ[/eluser]
I did indeed solve this, this is how I did it....

In config.php set the following
Code:
$config['uri_protocol']    = "PATH_INFO";

Then in your function that YouTube passes the response to use

Code:
// Enable querystring
parse_str($_SERVER['QUERY_STRING'],$_GET);




Theme © iAndrew 2016 - Forum software by © MyBB