1.5.0 • Published 1 year ago

formio-service v1.5.0

Weekly downloads
102
License
MIT
Repository
-
Last release
1 year ago

The 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('test@example.com', '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);
});
1.5.0

1 year ago

1.4.0

6 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago