JS

A new way to build software.
-
WayScript gives you flexible building blocks to seamlessly integrate, automate and host tools in the cloud. Unlock new potential with drag and drop programming.
-
Instantly connect to hundreds of datasets including GitHub, Twitter, databases, ecommerce data, or build your own integration. WayScript can read data from Excel, Google Sheets, and an evergrowing list of third-party APIs.
-
Seamlessly migrate to the cloud: Generate interfaces, instantly share, and run via event-based triggering.
Quick Start
If you use npm:
npm install wayscript
Or load directly from CDN:
<script src="https://cdn.wayscript.com/static/js/api/wayscript.0.0.7.js"></script>
Basic Usage
wayscript.apiKey = 'YOUR_API_KEY';
let programId = 1234;
wayscript.runProgram( programId );
let variables = [ 'one', 'two', 'three' ];
wayscript.runProgram( programId, variables );
let functionName = 'My Function';
wayscript.runProgram( programId, variables, functionName );
let onSuccess = function( responseText ) {
console.log( responseText );
};
let onError = function( responseText ) {
console.log( responseText );
};
wayscript.runProgram( programId ).onSuccess( onSuccess ).onError( onError );
⭐ In order to run a program using the WayScript Python API, you must first add an active Webhook Trigger to that program.
Running a specific function
- The function you specify MUST have an active Webhook Trigger.
- If you do not specify a function name in your request and your program has one function with a Webhook Trigger, the function with the Webhook Trigger will run.
- If you do not specify a function name in your request and your program has multiple functions with Webhook Triggers, you will be asked to specify which function you would like to run.
Example Apps