Skip to content

Instantly share code, notes, and snippets.

@nataliepo
Created May 7, 2010 16:25
Show Gist options
  • Save nataliepo/393665 to your computer and use it in GitHub Desktop.
Save nataliepo/393665 to your computer and use it in GitHub Desktop.
Snippet of code from kshay in 04/29 lilypad discussion
include('config.php');
include_once('lib/TypePad.php');
$tp = new TypePad;
$tp->openBatch();
$user = $tp->users->get('6p011e7c3404afa5f8');
$events = $tp->groups->getEvents('6p01229915440b12ef');
$user_latest = $tp->users->getEventsByGroup(array(
'id' => '6p011e7c3404afa5f8',
'groupId' => '6p01229915440b12ef',
'limit' => 5
));
$tp->runBatch();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment