nl_tokens: Execute api
pl_tokens: function executeAPI ( hookInfo , rawApi , args ) { // call API let { hasDoneHook , hasIntercepted , doneHookInfo } = hookInfo ; let <mask> = rawApi . apply ( this , args ) ; if ( hasDoneHook ) { // intercept the API call result if ( isPromise ( result ) ) { result = interceptPromiseResponse ( hasIntercepted , result , doneHookInfo ) ; } else if ( ! hasIntercepted ) { result = doneHookInfo . hook ( null , result ) ; } } return result ; }