How do I use the Feed API to Mix different feeds together?

9 views
Skip to first unread message

Eric Dorman

unread,
Nov 11, 2009, 10:04:56 PM11/11/09
to Google AJAX APIs
Hey guys,

I am trying to collect different Twitter Users Feeds,but I don't want
to add every feed url in the code. Is there a way to specify different
usernames from Twitter and have the AJAX Google Feed apis return the
all the feeds content?

Thansk & God Bless,
Eric

Jeremy Geerdes

unread,
Nov 11, 2009, 10:07:53 PM11/11/09
to google-ajax...@googlegroups.com
Not native within the API code, but you could easily write a control
that could do this. You might also check out Yahoo! Pipes as a
possible solution for aggregating all of the feeds into one.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
jgee...@mchsi.com

Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!

And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com
!

Eric Dorman

unread,
Nov 11, 2009, 10:51:10 PM11/11/09
to Google AJAX APIs
Hey Jeremy,

I was thinking of Yahoo Pipes,but I decided that I ddin't want to go
with it because I thought it was for non developers.

Do you know if Yahoo Pipes is for web developers or for just non
developers?

How do you make a control with the Google Feed apis?

Thanks & God Bless,
Eric Dorman

On Nov 11, 10:07 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> Not native within the API code, but you could easily write a control  
> that could do this. You might also check out Yahoo! Pipes as a  
> possible solution for aggregating all of the feeds into one.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com
> jgeer...@mchsi.com
>
> Unless otherwise noted, any price quotes contained within this  
> communication are given in US dollars.
>
> If you're in the Des Moines, IA, area, check out Debra Heights  
> Wesleyan Church!
>
> And check out my blog, Adventures in Web Development, athttp://jgeerdes.blogspot.com

Jeremy Geerdes

unread,
Nov 11, 2009, 10:59:42 PM11/11/09
to google-ajax...@googlegroups.com
Pipes can absolutely be for developers and non-developers alike,
depending on what you're trying to do. The question really isn't who
you are, but what you're wanting to do.

As for building your own control with the Feeds API, that really is a
nebulous question. If you don't have any Javascript knowledge, it will
be difficult to build, but if you have at least a basic familiarity
with Javascript, you will want to start with the documentation on the
google.feeds.Feed object. Your control will in all likelihood be built
around that. There are a number of examples and such in the
documentation to demonstrate concepts, and you will find the AJAX APIs
Playground indispensable because you'll be able to see the code and
tinker with it to learn all that it's doing at every different stage.
Links to both below:

Documentation
http://code.google.com/apis/ajaxfeeds/documentation/index.html
http://code.google.com/apis/ajaxfeeds/documentation/reference.html

AJAX APIs Playground
http://code.google.com/apis/ajax/playground/?exp=feeds

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!

And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com
!
> --~--~---------~--~----~------------~-------~--~----~
> 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
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en
> -~----------~----~----~----~------~----~------~--~---
>

Eric Dorman

unread,
Nov 11, 2009, 11:22:07 PM11/11/09
to Google AJAX APIs
Hey Jeremy,

Thanks for that great information and the links.

I have already used the Google AJAX API Playground before.

I want to be able to mix together different twitter user feeds,but not
have to write every single url in the google.feed.Feed code.

I sometimes worry about tools like Yahoo Pipes cause they don't let
you write any code to build your pipes. Thank you for those helpful
words in convincing me that it is alright to use Yahoo Pipes.

I worry sometimes about the way web developers might judge me on the
tools I use. Again thanks for all the help.

Thanks & God bless,
Eric Dorman

On Nov 11, 10:59 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> Pipes can absolutely be for developers and non-developers alike,  
> depending on what you're trying to do. The question really isn't who  
> you are, but what you're wanting to do.
>
> As for building your own control with the Feeds API, that really is a  
> nebulous question. If you don't have any Javascript knowledge, it will  
> be difficult to build, but if you have at least a basic familiarity  
> with Javascript, you will want to start with the documentation on the  
> google.feeds.Feed object. Your control will in all likelihood be built  
> around that. There are a number of examples and such in the  
> documentation to demonstrate concepts, and you will find the AJAX APIs  
> Playground indispensable because you'll be able to see the code and  
> tinker with it to learn all that it's doing at every different stage.  
> Links to both below:
>
> Documentationhttp://code.google.com/apis/ajaxfeeds/documentation/index.htmlhttp://code.google.com/apis/ajaxfeeds/documentation/reference.html
>
> AJAX APIs Playgroundhttp://code.google.com/apis/ajax/playground/?exp=feeds
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>

Vision Jinx

unread,
Nov 12, 2009, 2:17:47 AM11/12/09
to Google AJAX APIs
Hi,

Another possible option would be to create a Twitter list of the
twitter-ers then use the Twitter lists API to get the info if you want
real time data or use the Google Feed fetcher to fetch it as XML and
use that, but then you would be limited to the feed apis caching of
the data so it would not be in real time then.

I think this is the link >> http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-GET-list-statuses

It only took me about 10-15 minutes to whip up an app with it so it's
not that hard to work with in either solution.

Note! There is a known issue with the # or results param (per_page)
not working, Twitter says they hope to fix that soon. I am only
getting 20 results when I should be able to request up to 200 (more
then the Google API allows also) >> per_page. Optional. Specifies
the number of statuses to retrieve. May not be greater than 200.

Cheers!
Vision Jinx

Eric Dorman

unread,
Nov 12, 2009, 12:37:07 PM11/12/09
to Google AJAX APIs
Hey Vision,

Did you try doing that Twitter Lists App in Javascript?

I tried doing it in javascript,but it didn't work.

Can you show me some code snippits of how you managed to get the
Twitter Lists API to work?

I would like to use the Twitter Lists API,but I have not very good
luck with it.

Thanks & God Bless,
Eric Dorman

Vision Jinx

unread,
Nov 12, 2009, 8:09:33 PM11/12/09
to Google AJAX APIs
Hey Eric,

Yeah! It was all Javascript, I used JSON/JSONP. Just getting ready to
head off to work, but will follow up again with some "Hello World"
code snippets to get you started. But basically, you can dynamically
write a script tag with the src param being the URL to the Twitter
lists API requesting JSON format, you need to add a callback param
also so it will call your callback handler with the JSON results.
(Just like the Google REST APIs) There are a few ways to do things
with the Twitter lists API but that was the approach I took. :)

Cheers!
Vision Jinx

Eric Dorman

unread,
Nov 12, 2009, 8:26:18 PM11/12/09
to Google AJAX APIs
Hey Vision,

Ok, thanks for that great information.

I am a visual person so yes the Hello World Code Snippits would really
help out greatly.

I am not a expert in Javascript or JSON,but I am still a beginner so
any code snippits you have would be greatly appreciated. :)

Thanks & God Bless,
Eric

Vision Jinx

unread,
Nov 13, 2009, 1:53:39 AM11/13/09
to Google AJAX APIs
Hey Eric,

Here is a paste of some code to show you the basics. http://paste-it.net/public/w2bd920/

Looks like they fixed the results per page bug also as I am now
getting up to 200 results per page. :)

Cheers!
Vision Jinx

Eric Dorman

unread,
Nov 13, 2009, 10:38:46 AM11/13/09
to Google AJAX APIs
Hey Vision,

Thanks for that code.

It works great now.

So how would I go about changing it to include athletes tweets?

Do I make my own Twitter List?

Thanks for that man!

Thanks & God Bless,
Eric

On Nov 13, 1:53 am, Vision Jinx <vjn...@gmail.com> wrote:
> Hey Eric,
>
> Here is a paste of some code to show you the basics.http://paste-it.net/public/w2bd920/

Vision Jinx

unread,
Nov 14, 2009, 4:01:12 AM11/14/09
to Google AJAX APIs
Hi Eric,

Yes, you make you own Twitter list with the people (Twitter-ers) you
want. Then update the url variable (var url=) to use your name and
list name. I included a link in the code to Twitters API explaining
the api and I also added a comment in the code for my list example.
You should be able to look at my comments and see what needs to change
in the lists URL.

Cheers!
Vision Jinx
Reply all
Reply to author
Forward
0 new messages