Read entry data via PHP script

Hi,

I’d like to have an external script on the site’s server which is able to pull a full GravityForms entry based on a custom field value. So using the custom field value, it’ll display the full entry on that page.

I looked into GFAPI but hit a stumbling block.

I’m trying to include the api.php in my script but anytime I run $forms = GFAPI::get_forms(); it just kills my script dead :frowning:

Any help would be greatly appreciated :slight_smile:

Hi Michael. What error is being logged? You should not need to include api.php at all in order to use the GFAPI functions.

Also, rather than GFAPI functions, you could use the REST API functions:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.