TypeError: entry.mediaGroups is undefined

49 views
Skip to first unread message

Igor Nidzic

unread,
Sep 1, 2014, 6:14:43 AM9/1/14
to google-ajax...@googlegroups.com
Hello, I am using Google Feed API and I have problems when trying to get thumbnail from WordPress website. When I put :
var thumbnail = entry.mediaGroups[0].contents[0].url;

I get:
TypeError: entry.mediaGroups is undefined
Do you know what is problem?
entry.content and entry.title works fine.

Jeremy Geerdes

unread,
Sep 1, 2014, 2:13:51 PM9/1/14
to google-ajax...@googlegroups.com
First, I think it's mediaGroup, not mediaGroups. Second, beyond that, it's tough to say what's going on without seeing the application in action. Any chance you could provide a link to the application, working or not? Or at the very least, can you give the URL of the feed you're trying to use?

jg


--
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/ccaf8d2f-5348-426b-89cd-0e0f656d9835%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-searc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
Reply all
Reply to author
Forward
0 new messages