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.

Archive /

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

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

Zend Framework's implementation of Mashup Web Services


Reply


7 Posts   3092 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 [url=http://framework.zend.com/manual/en/zend.service.html] Zend_Service[/url] 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

Core Development Team, 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 [url=http://del.icio.us/]Del.icio.us[/url] 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 [url=http://www.silverstripe.com/feature-requests/flat/89#post3076]using LastRSS[/url]

I've posted a quick howto on [url]http://doc.silverstripe.com/doku.php?id=mashups#how_to_use_mashups_to_easily_embed_an_rss_feed[/url]. 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 [url=http://repo.or.cz/w/silverstripe-elijah.git?a=commitdiff;h=016f94ae749bcac1fa5ca412fa87818a03e65d1f]a RSSFeedURL page type[/url] 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. :)