Skip to content

jotform/jotform-api-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5720a69 · Dec 27, 2023

History

66 Commits
Dec 27, 2023
Dec 22, 2023
Dec 22, 2023
Dec 22, 2023
Sep 15, 2013
Dec 27, 2023
Dec 22, 2023
Dec 22, 2023
Dec 27, 2023
Dec 22, 2023

Repository files navigation

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.