Created
April 28, 2015 19:08
-
-
Save hannesvdvreken/2574d0da291b72d0c16b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client = new Guzzle\Http\Client(); | |
$client->setBaseUrl('https://www.googleapis.com/analytics/v3/management'); | |
foreach ($accounts as $account) { | |
$endpoint = "accounts/{$account->id}/webproperties"; | |
$requests[] = $client->get($endpoint); | |
} | |
$responses = $client->send($request); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment