Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/formio/formio-service
The Form.IO API Service library for Node.js applications
https://github.com/formio/formio-service
Last synced: 5 days ago
JSON representation
The Form.IO API Service library for Node.js applications
- Host: GitHub
- URL: https://github.com/formio/formio-service
- Owner: formio
- License: mit
- Archived: true
- Created: 2015-06-29T03:52:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-11T13:18:27.000Z (over 1 year ago)
- Last Synced: 2024-08-01T12:32:12.649Z (3 months ago)
- Language: JavaScript
- Size: 71.3 KB
- Stars: 18
- Watchers: 15
- Forks: 19
- Open Issues: 3
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-starred - formio/formio-service - The Form.IO API Service library for Node.js applications (others)
README
## This repository is now considered legacy and no longer supported. Please use the Form.io SDK instead @ https://github.com/formio/core
## Please take a look at our recent repositories and help documentation at the following links.
- https://help.form.io
- https://github.com/formio/formio.js
- https://github.com/formio/formio
- https://github.com/formio/react
- https://github.com/formio/angular
- https://github.com/formio/vueThe Form.IO Service Library
========================
This library allows you to interface with the Form.IO API from within a Node.js application. Below is an example,
of how this library can be used to retrieve all the submissions within a certain form.```
var formio = require('formio-service')();
var Form = formio.Form;// First authenticate.
formio.authenticate('[email protected]', 'password').then(function() {// Create a new form instance.
var form = new Form('https://myapp.form.io/user');// Iterate through all the submissions.
form.eachSubmission(function(submission) {// Console log the submissions.
console.log(submission);
});
});
```Using an API key
----------------
You can also use a Form.io API key to access the API's without needing to login.```
var formio = require('formio-service')({
key: '[YOUR_API_KEY]'
});
var Form = formio.Form;// Create a new form instance.
var form = new Form('https://myapp.form.io/user');// Iterate through all the submissions.
form.eachSubmission(function(submission) {// Console log the submissions.
console.log(submission);
});
```