Skip to content

Instantly share code, notes, and snippets.

@hannesvdvreken
Created April 28, 2015 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannesvdvreken/2574d0da291b72d0c16b to your computer and use it in GitHub Desktop.
Save hannesvdvreken/2574d0da291b72d0c16b to your computer and use it in GitHub Desktop.
$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