How to use the thingtalk.ExecEnvironment function in thingtalk

To help you get started, we’ve selected a few thingtalk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stanford-oval / thingengine-core / lib / apps / action_executor.js View on Github external
destroy() {
        if (this.selector === null)
            return;
        if (!this.selector.isRemote)
            return;

        // HACK HACK HACK
        // make up an empty environment
        var env = new ExecEnvironment(this.engine.platform.locale, this.engine.platform.timezone);
        var [principal, uuid] = this.action.input(env);
        return this.engine.remote.sendData(principal, uuid, null);
    }