Open this page in the API Guide
SessionService.getDataDiscoveryToken Method
Gets a data discovery token for the current user session.
Return Value
Type: jQuery.Promise
A promise object that resolves when the call is complete, returning the token as a string.