This is a Google Apps Script that get latest version of Jw_cad.
- JavaScript
- Google Apps Script (Spreadsheet)
GET /?format=[output format]
Both parameters are optional.
- format: 'json' (default) or 'xml'
This app runs in my spreadsheet.
{
"isSucceeded": true,
"errMsg": null,
"version": "8.00.4",
"downloadUrl": "http://www.jwcad.net/download/jww800d.exe"
}
<?xml version="1.0" encoding="utf-8"?>
<object>
<isSucceeded>
<true/>
</isSucceeded>
<errMsg>
<null/>
</errMsg>
<version>8.00.4</version>
<downloadUrl>http://www.jwcad.net/download/jww800d.exe</downloadUrl>
</object>
There are some tests written by Vows and Chai. The tests use some mock that run on Node.js as Google Apps Script API.
$ npm install
$ npm test
MIT License
Copyright (C) 2014-2015 Pine Mizune