Gravity Form REST API v2
The Gravity Form REST API v2 for JavaScript, available for Node.js backends
Installing
The preferred way to install the Gravity Form REST API v2 for Node.js is to use the npm package manager for Node.js. Simply type the following into a terminal window:
npm install gravity-form-rest-api
Then within your application, you can reference to the SDK with the following:
;
Usage and Getting Started
const GFormAPI = ;const GForm = API_BASE_URL API_KEY API_SECRET_KEY; { if err throw err; console;}
Get all form entries
GForm;
Get single form entry
GForm;
Add new entry
const example_entry_fields = form_id: YOUR_FORM_ID date_created: '2020-04-30 12:08:23' source_url: 'https://domain.local' '1': '' '2': 'Foo' '3': 'Bar' '4': '1234567890' '5': 'user@email.local';GForm;
Update entry
const example_entry_fields = form_id: YOUR_FORM_ID date_created: '2020-04-30 12:08:23' source_url: 'https://domain.local' '1': '' '2': 'Foo' '3': 'Bar' '4': '1234567890' '5': 'user@email.local';GForm;
Delete entry
GForm;
Send notifications
GForm;