Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tflanagan/node-gocanvas
A lightweight GoCanvas SDK
https://github.com/tflanagan/node-gocanvas
api canvas go-canvas gocanvas nodejs sdk
Last synced: about 2 months ago
JSON representation
A lightweight GoCanvas SDK
- Host: GitHub
- URL: https://github.com/tflanagan/node-gocanvas
- Owner: tflanagan
- License: other
- Created: 2017-08-29T19:03:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-05T18:57:36.000Z (over 3 years ago)
- Last Synced: 2024-11-13T00:49:40.444Z (about 2 months ago)
- Topics: api, canvas, go-canvas, gocanvas, nodejs, sdk
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-gocanvas
==============[![npm license](https://img.shields.io/npm/l/gocanvas.svg)](https://www.npmjs.com/package/gocanvas) [![npm version](https://img.shields.io/npm/v/gocanvas.svg)](https://www.npmjs.com/package/gocanvas) [![npm downloads](https://img.shields.io/npm/dm/gocanvas.svg)](https://www.npmjs.com/package/gocanvas)
A lightweight Canvas SDK
[Canvas Web Services API Documentation PDF](https://www.gocanvas.com/content/images/file-uploads/Canvas_Webservices.pdf)
Install
-------
```
# Latest Stable Release
$ npm install gocanvas# Latest Commit
$ npm install tflanagan/node-gocanvas
```Example
-------
```javascript
'use strict';const GoCanvas = require('gocanvas');
const gc = new GoCanvas({
service: {
hostname: 'www.gocanvas.com',
port: 443,
path: '/apiv2'
},options: {
encoding: 'utf-8'
},username: '',
password: ''
});gc.getForms().map((form) => {
return gc.getSubmissions({
form_id: form.Id
d}).then((submissions) => {
console.log(submissions);return submissions;
});
}).catch((err) => {
console.error(err);
});```
Class
-----
```javascript
class GoCanvas {constructor([options = {}])
getForms([querystring = {}])
getSubmissions([querystring = {}])
getImages([querystring = {}])
postReferenceData(data[, querystring = {}])
postCSVMetaData(data[, querystring = {}])
getCSV([querystring = {}])
// postDispatchItems(data[, querystring = {}])
// getDepartments([querystring = {}])defaults
}
```License
-------Copyright 2017 Tristian Flanagan
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.