Core JavaScript API for MindTouch
This Library is provided for and supported by the open source community. Supported MindTouch site owners may file bug reports via GitHub, but support plans do not cover the usage of this library.
$ jspm install mindtouch-martian
Use API objects to get business entities (user, page, file, etc)
import { User } from 'martian/user';
let user = User.getCurrentUser().then((user) => {
// do something with user.username, user.fullname, user.email, etc..
});