pygfapi
Library for interacting with the Gravity Forms Web API.
Not created, sponsored, or supported by Rocketgenius, Inc.
Prerequisites
WordPress installed.
Pretty Permalinks enabled (anything other than http://example.com/?p=123).
Gravity Forms plugin installed and activated.
Web API enabled (Forms > Settings > Web API).
Installation
$ python setup.py install
Usage
>>> from pygfapi import Client
>>> gf = Client("https://example.com/gravityformsapi/", "1234", "abcd")
>>> form = gf.get_form(1)
>>> print form[u"id"]
1
>>> print form[u"title"]
u'Test Form'
>>> form_1_entries = gf.get_form_entries(1)
>>> print len(form_1_entries)
3
>>> for entry in form_1_entries:
... print entry[u"id"]
...
3
2
1
>>> entries = gf.get_unread_entries(15)
>>> for e in entries:
... print e[u"id"]
... e[u"is_read"] = 1
...
60
59
58
>>> response = gf.put_entries(entries)
>>> print response
Entries updated successfully
Running Tests
$ python -m unittest discover
License
GNU General Public License, Version 3 (see LICENSE).
Copyright
Metadata
Release files for pygfapi 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygfapi-0.0.3.zip | 7.3 kB | Without provenance | Details for pygfapi-0.0.3.zip |
Release files / pygfapi-0.0.3.zip
| Download URL | pygfapi-0.0.3.zip |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7716c7da1f3eeb8eb469db76f28000984ee07c5701d4715e5af8f61241822837
|
|
BLAKE2b-256 checksum How to use checksums |
cc3287c64f0ccf935f8c13d735756a18a4cc9db049d39815b1cdd30bd33143fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pygfapi 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.