...
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).
...