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.4.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
let variables = [ 'one', 'two', 'three' ];
wayscript.runProgram( programId, variables );
// Handle the response
wayscript.onSuccess = function( responseText ) {
console.log( responseText );
};
wayscript.onError = function( responseText ) {
console.log( responseText );
};
wayscript.runProgram( programId ).onSuccess( onSuccess ).onError( onError );