Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 260 Bytes
<?php
require 'gapi.class.php';
$ga = new gapi("XXXXXXXX@developer.gserviceaccount.com", "key.p12");
$ga->requestAccountData();
foreach($ga->getAccounts() as $result)
{
echo $result . ' ' . $result->getId() . ' (' . $result->getProfileId() . ")<br />";
}