Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
JavaScript
JavaScript
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
JavaScript
JavaScript

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
JavaScript
JavaScript

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

...