The place to discuss how to make 23 work in special ways with the 23 api

photos.getFavorites ?

IkoTikashi   June 05, 2008, 03:41 PM

I was following the thread http://www.23hq.com/forums/message-view?message_id=3165665 and thought about coding that group-favorites-thingy, but to my surprise photos.getFavorites isn't available in the API? Just wanted to note this for a rainy day ... :)

 
Steffen Fagerström Christensen Team 23   June 05, 2008, 04:23 PM

That probably makes it hard to implement that feature ;-)
I'll take a look at it. The main concern at the moment for api in the php_serialized format. We'd really like to support it, but flickr has something of a head start since the service is php native. The format is pretty hard to emulate, and we'll probably need to re-do the api implementation from scrath to have php and json supported.

Look for a fourth format option, tcl_list, when we get there.

 
Vincent   June 05, 2008, 04:33 PM

Ah, which language is 23 written in? And isn't there a library that implements PHP's serialize in that language? (e.g. I found one for Ruby with a Google search)

 
Steffen Fagerström Christensen Team 23   June 05, 2008, 05:24 PM

23 is built upon OpenACS (http://www.openacs.org) and is coded in Tcl (http://tcl.tk)

 
Vincent   June 07, 2008, 12:56 PM

OK, there's one I didn't see coming... Best of luck then :P

 
Steffen Fagerström Christensen Team 23   June 07, 2008, 01:03 PM

In fact the biggest problem isn't converting between formats -- instead the issue is the there isn't a 1:1 correlation between, say, XML and JSON.

In XML, you'd have:
<photos>
<photo photo_id="678"/>
<photo photo_id="2341"/>
</photos>

The obvious conversion is:
photos:{photo:{photo_id:678}, photo:{photo_id:2341}}
(which wouldn't work)

Instead, it has to be translated into:
photos:{photo:[{photo_id:678}, {photo_id:2341}]}

I'm actually feeling pretty confident that we'll be able to release the JSON-version of the API quite soon. The TCL LIST format is ready as well. The PHP thing, though, still ticks me off ;-)

 
Steffen Fagerström Christensen Team 23   June 07, 2008, 01:39 PM

On a related note: Does anyone know of flickr projects with which is can test the format=json code?

 
Steffen Fagerström Christensen Team 23   June 07, 2008, 06:58 PM

An update. Now, I'll watch football.

 




About 23

About 23
What is 23 and who's behind the service?
Just In
Discover the world from a different angle.
Here's a crop of the latest photos from the around the world.
Search
Search photos from users using 23
Help / Discussion
Get help or share your ideas to make 23 better
23 Blog / 23 on Twitter
Messages and observations from Team 23
Terms of use
What can 23 be used for and what isn't allowed
More services from 23
We also help people use photo sharing in their professional lives
RSS Feed
Subscribe to these photos in an RSS reader
  • Basque (ES)
  • Bulgarian (BG)
  • Chinese (CN)
  • Chinese (TW)
  • Danish (DK)
  • Dutch (NL)
  • English (US)
  • French (FR)
  • Galician (ES)
  • German (DE)
  • Italian (IT)
  • Norwegian (NO)
  • Polish (PL)
  • Portuguese (PT)
  • Russian (RU)
  • Spanish (ES)
  • Swedish (SE)

Popular photos right now