This is another thing that I did, but still couldn't get the
thumbnails hosted in googlehosted as the docs says :
I set the :
$query->setParam('content','thumbnails');
then I cycle through the image_link attribute :
$imglink = $entry->getGbaseAttribute("image_link");
foreach($imglink as $imgt) {
echo "<img src=$imgt/> - $imgt <br>";
}
What should I do ?
On Jan 15, 7:50 pm, Jick <[email protected]> wrote:
> Hi !
>
> This is my first time to write a script using PHP and Zend. I am
> trying to retrieve details of an item such as the ID, Title,
> Description, original location (link) and the thumbnail. But I've been
> searching over the net for more than 3 hours and can't find how to
> retrieve thumbnail details of an item using PHP. I tried using :
>
> $query->setContent("thumbnails");
>
> But the data that came out doesn't include the thumbnail details. if I
> try to put the "content=thumbnails" along with :
>
> $query->setBq("$search_item"."&content=thumnbails");
>
> then I get this error :
>
> Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
> message 'Expected response code 200, got 400 <errors> <error
> type="request" reason="Invalid query: illegal delimited token: ASSIGN"/
>
> > ...
>
> I also check the item attributes but I can't find the thumbnail
> details, yet what I found is the image_link attribute. I only use
> image_link[0] but some images are so big.
>
> I tried reading other documents and it keeps on using the gm:thumbnail
> thing which I don't know how to use in php.
>
> BTW, is there e document or function to know the elements (?) of an
> item such as the Id, title, description etc. ?
>
> How do I get the thumbnail details ?
>
> Please help.
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---