Skip to content

Instantly share code, notes, and snippets.

@woodwardtw
Created May 2, 2016 02:17
Show Gist options
  • Save woodwardtw/a3c29b5675b5b6b76e51963b2dbf97fa to your computer and use it in GitHub Desktop.
Save woodwardtw/a3c29b5675b5b6b76e51963b2dbf97fa to your computer and use it in GitHub Desktop.
Gravity Forms API - POC
<?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