Skip to content

Instantly share code, notes, and snippets.

@ianbarber
Created August 10, 2012 10:59
Show Gist options
  • Save ianbarber/3313399 to your computer and use it in GitHub Desktop.
Save ianbarber/3313399 to your computer and use it in GitHub Desktop.
<?php
while(($record = fgetcsv($fh)) && $record !== false) {
// Skip the header row
if($record[0] === "Date") {
continue;
}
// Create the moment and target
$moment = new Google_Moment();
$moment->setType("http://schemas.google.com/CheckInActivity");
$target = new Google_ItemScope();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment