gravity-forms-api
v0.0.9
Published
Basic module that creates signatures and requests data from gravity forms endpoints
Downloads
12
Readme
GravityFormsAPI
A small api for making requests to Gravity Forms integrated WordPress sites
Installation
npm install gravity-forms-api --save
Usage
import { GravityFormsAPI } from 'gravity-forms-api';
const apiKey = '1234';
const domain = 'www.yourDomain.com';
const privateKey = 'abc';
// initialize gravityForms instance
const gravityForms = new GravityFormsAPI(apiKey, domain, privateKey);
const method = 'GET';
const route = 'forms/1/entries';
// Create a signature for the route you want to interact with
const signature = gravityForms.createSignature(method, route);
// Make the api request
const results = gravityForms.request(route, signature);
Release History
- 0.0.1 Initial release