This section describes Bixby's JavaScript API available for implementing actions.
If you're using Version 2 of the JavaScript Runtime System, read the JavaScript Runtime Version 2 Guide for important information on how Version 1 JavaScript examples differ.
The following modules are not supported in Version 2:
dates
soap
Read Replacing the dates
Module and Replacing the soap
Module for guidance.
To use the functions in a module with JavaScript Runtime Version 1, use the require
statement to import them:
var http = require('http')
Earlier versions of the Bixby JavaScript API allowed you to call functions without explicitly importing them via require
. This implicit import is being deprecated, and warnings will be emitted if you do not explicitly require
modules.
In JavaScript Runtime Version 2, use the standard import
command to import an API module:
import http from 'http'
The API is organized into a set of Node.js-style modules.
base64
config
console
dates
fail
http
md5
secret
soap
textLib
transaction
types