Javascript SDK (Hosted)

The REST API serves up the SeedRateCalculator code used in its own controller functions to perform the required calculations in the form of a hosted Javascript File. This can be downloaded and used in a NodeJS program, or imported into a web application through the <scrip> tag.

Download / Import URI: /v1/scripts/js/sdk.js

Example Import:

<!DOCTYPE html> <html> <head> <title>Demo</title> <!-- Here we load the sdk from seedcal api --> <script src="http://localhost:3002/v1/scripts/js/sdk.js"></script> </head> <body> <h1>Seeding Rate Calculator JS SDK</h1> <p>loads js sdk script from seed calc api, and performs example MCCC calculations.</p> <!-- Script tag for script.js --> <script src="script.js"></script> </body> </html>