Giter Site home page Giter Site logo

berkcanucan / jotform-api-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jotform/jotform-api-nodejs

1.0 0.0 0.0 199 KB

JotForm Node.js SDK

License: GNU General Public License v3.0

Shell 0.14% TypeScript 99.86%
jotform jotform-node-sdk jotform-javascript-sdk jotform-typescript-sdk jotform-nodejs-sdk

jotform-api-nodejs's Introduction

logo
Build Status


Jotform Node.js SDK

Jotform's Node.js SDK.

  • First class TypeScript support.
  • Promise based.

Installation

$ npm install jotform

Usage

  • Initialize the SDK.
import { Jotform } from 'jotform';

const JF = new Jotform();
  • Authenticate with Jotform.
JF.initializeSDK(
  'your-api-key',
  'Jotform Instance (US, EU or HIPAA - defaults to US)'
);
  • Simple examples.
JF.user
  .getUser()
  .then((response: object) => {
    console.log(response);
  })
  .catch((error) => {
    console.error(error);
  });
const data = {
  questions: {
    '1': {
      type: 'control_head',
      text: 'Text 1',
      order: '1',
      name: 'Header1',
    },
    '2': {
      type: 'control_head',
      text: 'Text 2',
      order: '2',
      name: 'Header2',
    },
  },
};

JF.form
  .addNewQuestionToForm(formId, data)
  .then((response: object) => {
    console.log(response);
  })
  .catch((error) => {
    console.error(error);
  });

License

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

jotform-api-nodejs's People

Contributors

alcadramin avatar berkcanucan avatar denisozgovde avatar dependabot[bot] avatar diki avatar eeertekin avatar elifceren avatar hasansoydabas avatar kennethpdev avatar samjetski avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.