...
Despite the fact that OpenSocial solves the problem of social media platform's platform’s extensibility and gadgets portability, it has two major limitations. First, it is user-centric but does not take the user's context into account. In many social media platforms context is a crucial component and if gadgets were able to retrieve the user's context (from the hosting platform), it would greatly improve user's user’s experiences.
Conceptual changes
...
Code Block | ||||
---|---|---|---|---|
| ||||
osapi.apps.get({resourceId: "example.org/space/18"}).execute(function(response){
response[0].displayName;
});
|
osapi.apps.getCurrent
(new) Get the currently running app
Code Block | ||||
---|---|---|---|---|
| ||||
osapi.apps.getCurrent().execute(function(curApp){
curApp.displayName;
});
|
osapi.apps.getParent
(new) Get a parent of the running app (either space or person)
Code Block | ||||
---|---|---|---|---|
| ||||
osapi.apps.getParent().execute(function(parent){ parent.displayName; parent.id; }); |
5. osapi.appdata
Appdata should be saved either for widget context (space or person where widget belongs) or per
any other user (viewer, for example).
...
Shindig patch with spaces
Shindig-2.0 5 is taken as a base: http://svn.apache.org/repos/asf/shindig/tags/shindig-project-2.0.0
. Patch is attached (no with tests!)The patch is currently being moved to shindig trunk.
Links
Space proposal draft based on OpenSocial 2.5 spec
...