/gravityforms-python

gravityforms-python is an API wrapper for Gravityforms (Wordpress plugin), written in Python.

Primary LanguagePythonMIT LicenseMIT

gravityforms-python

gravityforms-python is an API wrapper for Gravityforms (Wordpress plugin), written in Python.
This library uses Oauth1 for authentication.

Installing

pip install gravityforms-python

Usage

from gravityforms.client import Client
client = Client(base_url, consumer_key, consumer_secret)

List Entries

entries = client.list_entries()

Filter entries

entries = client.filter_entries(filter_field, 
            filter_value, 
            filter_operator, 
            sorting_direction=None, 
            page_size=None, 
            form_id=None
)

List Forms

forms = client.list_forms()

Get Form detail

form = client.get_form(form_id)