How a widget can figure out the user logged in WireCloud?
问题 As widget developer, I would like to show different information in my widget depending of the user that is logged in WireCloud. How could the widget figure out who is the user that is logged in WireCloud when it is loaded? 回答1: WireCloud provides support for accessing context information currently available through the MashupPlatform API. Currently WireCloud provides both the username and the full name of the user: var username = MashupPlatform.context.get('username'); var realname =