I'm using the code :
function get_indiv_visitors($site_id, $start_date, $end_date=NULL) {
require 'config.php';
$ga = new gapi($ga_email,$ga_password);
$ga->requestReportData($site_id, array('pagePath'),array('Visitors'), $sort_metric=null, $filter=null, $start_date, $end_date);
$totalvisitors = $ga->getVisitors();
return $totalvisitors;
}
This code works, but returns a number that is greater than visits (which I cross references with the google analytics sites, so those numbers are definitely correct). It doesn't make sense that I should have more visitors than visits.