See the thing is that it works with my snippets code but not the items
code.
Nevertheless I changed it and still doesn't work.
$query->setBQ("youtube%7Cvideo clips%7Cyoutube videos");
It seems it doesn't loop through the loop, because it doesn't even
echo "done"
To shed a little more light goto
http://www.youtubevideocentral.com/itemsfeed.php
On Feb 11, 8:17 am, Tom Wilson <[email protected]> wrote:
> I don't have access to my zend development machine at the minute but
> off the top of my head have you tried url encoding the pipes ?
>
> I can't recall is this done automatically by zend/libaray or something
> that needs turned on.
>
> Tom Wilson
> Freelance Google Base Developer and Consultantwww.tomthedeveloper.com
>
> Google Base Tools -http://dev.tomthedeveloper.com/googlebase
> Featured Project
> :http://google-code-featured.blogspot.com/2008/02/google-base-competit...
>
> On Feb 10, 7:48 pm, Youtube video clips <[email protected]>
> wrote:
>
> > Hi
>
> > I am trying to retrieve an item feed from Gbase but with multiple
> > searches and for some reason it works if I put one keyword and doesn't
> > if I put two or more.
>
> > I know the connection to the API is ok because as I said it works if
> > there is only one keyword in the $query string, but once I try to
> > seperate them with ' | ', it shows nothing.
> > Is there a different way to use the ' | ' with the setBQ function?
>
> > Also even within the loop when I echo " done ", that doesn't show on
> > the page either?
>
> > $service = new Zend_Gdata_Gbase($client);
>
> > $query = $service->newItemQuery();
> > $query->setBQ("youtube|video clips|youtube videos");
>
> > $feed = $service->getGbaseItemFeed($query);
>
> > foreach ($feed->entries as $entry) {
>
> > echo $entry->title->text;
> > echo "done<br/>";
>
> > }
>
> > Thanks, Sean
--
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-base-data-api?hl=en.