Add additional entries to the feed

35 views
Skip to first unread message

Brad Logan

unread,
Aug 23, 2014, 11:17:20 AM8/23/14
to google-ajax...@googlegroups.com
Hi there,

I am using this API for the first time to display the RSS feed on my wordpress site in a mobile app.  I have some custom attributes(nodes) to my RSS feed; for example <thumb></thumb> that holds the url of the thumbnail image for the post.  When I use the API to get the feed, this attribute is not returned (and some others are not returned as well).  So its seems like the API slims down the feed in the return.  Is there a way to have the API return all attributes between the <item> </item> tags?

Thanks

Jeremy Geerdes

unread,
Aug 26, 2014, 11:25:08 AM8/26/14
to google-ajax...@googlegroups.com
The API normalizes feeds. That means that it is going to, by default, return a standardized list of properties. And since your custom nodes are not standardized, it's not going to return them BY DEFAULT. However, you could get the feed in MIXED format, which will return the xml node - complete with custom nodes, etc. - along with the JS. If you're using the JS library, you could then use DOM methods to pull the node you want and get its value. If you're using something other than JS, you would need to parse the response->responseData->xmlString property.

It should also be noted that the Feeds API TOS state that the deprecation policy will be void as of April 2015. This means that Google may terminate the service, with or without warning, at any time after that. So you may not want to spend too much time developing a solution based on the Feeds API only to have to develop a new solution at that time.

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/d6b21147-7292-49e4-9de3-5a27fde42129%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!

Brad Logan

unread,
Aug 27, 2014, 11:09:23 AM8/27/14
to google-ajax...@googlegroups.com
Thanks for the reply, the mixed format worked a charm.  Thanks for the heads up on the Feeds API possibly being terminated, good to know!

Brad


On Tuesday, August 26, 2014 12:25:08 PM UTC-3, jgeerdes [AJAX APIs "Guru"] wrote:
The API normalizes feeds. That means that it is going to, by default, return a standardized list of properties. And since your custom nodes are not standardized, it's not going to return them BY DEFAULT. However, you could get the feed in MIXED format, which will return the xml node - complete with custom nodes, etc. - along with the JS. If you're using the JS library, you could then use DOM methods to pull the node you want and get its value. If you're using something other than JS, you would need to parse the response->responseData->xmlString property.

It should also be noted that the Feeds API TOS state that the deprecation policy will be void as of April 2015. This means that Google may terminate the service, with or without warning, at any time after that. So you may not want to spend too much time developing a solution based on the Feeds API only to have to develop a new solution at that time.

jg


On Sat, Aug 23, 2014 at 10:17 AM, Brad Logan <bst...@gmail.com> wrote:
Hi there,

I am using this API for the first time to display the RSS feed on my wordpress site in a mobile app.  I have some custom attributes(nodes) to my RSS feed; for example <thumb></thumb> that holds the url of the thumbnail image for the post.  When I use the API to get the feed, this attribute is not returned (and some others are not returned as well).  So its seems like the API slims down the feed in the return.  Is there a way to have the API return all attributes between the <item> </item> tags?

Thanks

--
--
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

To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/d6b21147-7292-49e4-9de3-5a27fde42129%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-search-api+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages