Some Sort of API?
Issue 311 from bugs.joindiaspora.com Created by: ilya On Sun Oct 10 05:41:54 2010
Priority: Normal Status: In Progress
So I was just thinking, how big of a need or issue is an API to Diaspora? So we've all considered being able to export data out of Diaspora for things such as updating Twitter posts, but how about leveraging our networks of information for use in, say, a smartphone application?
Posted on Github by matthew-roberts on 2010/09/24 03:45:21 -0700
Comment by: Hexagon On Sun Oct 10 10:48:47 2010
This is a feature request, not a bug :)
Comment by: reroot On Fri Jan 14 18:36:48 2011
+1
It would be nice to be able to create different kinds of content that could be shared and even 'owned' by multiple contacts within an aspect. meeting minutes, or a memo, or something of that sort. instead of making these kinds of features part of the core functionality, it would be great to add them on as 'modules' so to speak. I just wonder how this would work across pods (if one pod has 'minutes' module but another does not, would the latter pod just not show the minutes?)
also, it seems there will need to be some very strict review and testing standards for these said modules, to ensure that they are not compromising the integrity and security of the stack.
Comment by: samrose On Thu Mar 10 02:41:53 2011
Hi, this is Sam from http://futureforwardinstitute.com
We're experimenting with "plugin" architecture ideas for diaspora.
We have a simple idea that is based off of the http://flows.futurefowardinsitute.com draft RFC
Our idea is to basically keep the "plugins" completely outside of the diaspora application. We think it could be worth thinking about making plugins/extensions that work with diaspora across a plurality of application layer protocols. "Plugins" could be coded in any programming language, provided that they conform to the diaspora API in terms of how they deal with data objects, and the plugins would run as a webservice with a variety of access/availability rules. The advantages here are that the problem of "my diaspora pod does not support that plugin" is effectively eliminated. As new types of content are available for sharing, if special functionality is required for making the new type of content viewable or usable in diaspora, it can live as one or more services available on servers to accomplish the needed processing. Diaspora instances could be set to use specific "plugin" services/sources, or could look for next nearest service available from a distributed registry for instance.
I thought that now is a crucial time to think about a scalable way to allow people to develop extensions for diaspora in parallel. Keeping them outside of diaspora codebase keeps the code clean and lean and easier to refine without the burden of keeping extensions and plugins up to date because they are tightly integrated into the application. The extensions can instead be joined via external-facing API that supports multiple protocols. What do you all think?
Comment by: paulbhartzog On Thu Mar 10 20:03:20 2011
As Sam Rose and I presented in 2009 in a conference on network ecologies:
"How can I make this work with other systems?" produces more value than "How can I make this work best for me?" (Slide 21 : http://www.slideshare.net/paulbhartzog/flows-2009-uk-media-ecologies )
Your API is more important then your internal features. For example, being able to post to twitter and Facebook right from Diaspora status is an incentive to use Diaspora over other interfaces.
The future is full of interfaces, and people will choose which ones they'll use when and where. The more things the Diaspora interface lets you do, the more advantageous it is.
Your API is simply another interface. And a crucial one. In addition, if the extensions/plugins structure is an API-based ecology using REST and/or other methods, then this insures ease of development and ease of adoption.
- Suggestion
As you contemplate an api for client apps, examples to have in mind would be gnu/linux social broadcast clients like Gnome Gwibber or KDE social desktop. The same api would be consumed by phone apps, of course, but thinking of free desktop apps first, before open apps for closed but widely used platforms, has practical benefits.
Do an iOS/Android app => increase your user base more rapidly. Collaborate with Gwibber/KDE social => increase your developer base more rapidly, and its not as much work for to implement a client plugin or help someone who already is. (and also, you're helping out developers and users in the free world, one of whom may someday build a phone app for you and save you the trouble. :)
I noted this in a Gwibber bug report I think a key thing is to implement a discovery and listserving service for public pods, so that clients can query it without a client developer needing to make a separate feature/plugin/app for each Diaspora pod that becomes available.
Currently, that service is provided on your github wiki, but there's no programmatic way to access it.
I and others have logged issues at https://bugs.launchpad.net/gwibber/+bugs?field.searchtext=diaspora
Other than posting and receiving messages and images, I'd like desktop apps to be able to interact with my social graph (see Facebook's Graph API). It would also be neat if apps would be allowed to post other content than messages and images. E.g. a calendar app might post an RSVP to my friends on Diaspora, which would then get picked up by their calendar app.
https://github.com/diaspora/diaspora/wiki/API-v1
If this is a feature request for an API and the API from what I read is not final, why is this closed? Or are there follow up issues I could subscribe to?
I'd love to see Identi.ca being able to forward posts to Diaspora, but for that a POST API would be needed. I can't find anything about that in the link to the wiki.
Where should I post such a feature request? Or should I open a new Issue?