Created
May 2, 2016 02:17
-
-
Save woodwardtw/a3c29b5675b5b6b76e51963b2dbf97fa to your computer and use it in GitHub Desktop.
Gravity Forms API - POC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$form_id = 2; | |
$entries = GFAPI::get_entries( $form_id, array(), null, array( 'offset' => 0, 'page_size' => 99999 ) ); | |
$countEntries = count($entries); | |
echo 'number of submissions ' . $countEntries; | |
var_dump($entries[0]{"source_url"}); //second chunk is the name of the field as called by gravity forms | |
for ($x = 0; $x <= $countEntries; $x++) { | |
echo 'score - ' . $entries[$x]{"source_url"}; | |
} | |
echo "<h2>vardump</h2>"; | |
var_dump($entries); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment