jotform
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

logo


Jotform Node.js SDK

Installation

$ npm install jotform

Usage

  • Initialize the SDK.
import Jotform from "jotform";

const client = new Jotform('YOUR_API_KEY');
  • Simple examples.
const response = await client.form.createForm();
const formId = response.content.id;
const questions = await client.form.addQuestions(formId, [
	{
		type: 'control_email',
		name: 'emailfield',
		text: 'My email field',
		order: '1'
	}, {
		type: 'control_email',
		name: 'emailfield2',
		text: 'My email field 2',
		order: '2'
	}
]);

License

  • This project is under the GPLv2 license. Copyright (c) 2023 Jotform and it's contributors.

Readme

Keywords

none

Package Sidebar

Install

npm i jotform

Weekly Downloads

1,699

Version

1.0.1

License

MIT

Unpacked Size

143 kB

Total Files

112

Last publish

Collaborators

  • jotform
  • diki