Package Exports
- wayscript
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wayscript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 wayscriptOr load directly from CDN:
<script src="https://cdn.wayscript.com/static/js/api/wayscript.0.0.7.js"></script>Basic Usage
Get the API Key from your WayScript user profile page
Run WayScript programs from your JavaScript code:
wayscript.apiKey = 'YOUR_API_KEY';
// Run a program by id
let programId = 1234;
wayscript.runProgram( programId );
// Pass variables to a program (optional)
let variables = [ 'one', 'two', 'three' ];
wayscript.runProgram( programId, variables );
// Run a specific function within your program (optional)
let functionName = 'My Function';
wayscript.runProgram( programId, variables, functionName );
// Handle the response
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.