Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Zend Framework's implementation of Mashup Web Services


Go to End


7 Posts   3550 Views

Avatar
laktek

Google Summer of Code Hacker, 76 Posts

11 July 2007 at 10:09am

Seems like Zend framework also following similar approach to what we are doing at Mashup Web Services (seriously I didn't know it before hand). In Zend framework too, they have a extendable Zend_Service class which supports REST as our RestfulService class.

They ships their framework with builtin support to web services such as Akismet, Amazon, Audioscrobbler, Del.icio.us, Flickr, Simpy, StrikeIron, Yahoo! and they plans to add more services later.

I think this is great as a source of inspiration when coming to ideas and planning of our module.

Avatar
Tim

Community Member, 201 Posts

11 July 2007 at 1:15pm

Edited: 11/07/2007 1:15pm

It's also interesting to note that the Zend Framework is licensed under the BSD licence, same as SilverStripe.

Are there components which we can borrow or reuse from this? Would there be any value?

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

24 July 2007 at 8:30am

> They ships their framework with builtin support to web services such as Akismet, Amazon, Audioscrobbler, Del.icio.us, Flickr, Simpy, StrikeIron, Yahoo! and they plans to add more services later.
> I think this is great as a source of inspiration when coming to ideas and planning of our module.

I just wanted to say that it would be great if Del.icio.us support was added to SilverStripe mashups. I just started using Del.icio.us today and it's great! :)

Avatar
laktek

Google Summer of Code Hacker, 76 Posts

31 July 2007 at 2:04am

Edited: 31/07/2007 3:35am

Elijah >> You can use RestfulServices class to list your DEL.ICIO.US links on your homepage. Try this out !

Have this on your Page.php

function DeliciousLinks(){
		$delicious = new RestfulService("http://del.icio.us/rss/yourname");
		
		$conn = $delicious->connect();
		$result = $delicious->getValues($conn, "item");
		
		return $result;
	}

And this on your template :

<% control DeliciousLinks %>
	<li><a href="$link">$title</a></li>
<% end_control %>

I guess we should introduce a formal way to build and consume such widgets in SS easily. Similar application would be twittr, lastfm, amazon and much more!

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

31 July 2007 at 3:09am

> Elijah >> You can use RestfulServices class to list your DEL.ICIO.US links on your homepage. Try this out !

Hi laktek,

Wow, this is great! :) This is a much better solution than using LastRSS

I've posted a quick howto on http://doc.silverstripe.com/doku.php?id=mashups#how_to_use_mashups_to_easily_embed_an_rss_feed. Feel free to move/change it. ;)

Thank you very much for telling me about this,

Elijah

Avatar
laktek

Google Summer of Code Hacker, 76 Posts

31 July 2007 at 3:34am

Yeah! this would be a much nicer and more SilverStripe way to handle the problem. Yet I'm not sure whether it would work perfectly for any RSS feed type (but it should in theory ;) )

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

12 August 2007 at 8:15am

> Elijah >> You can use RestfulServices class to list your DEL.ICIO.US links on your homepage. Try this out !
> I guess we should introduce a formal way to build and consume such widgets in SS easily. Similar application would be twittr, lastfm, amazon and much more!

I've created a RSSFeedURL page type allowing easy embedding of an RSS feed (such as one from del.icio.us) on a page. I'll probably use that until the cool widgets I'm hearing about become available. :)