thujohn / analytics-l4

Google Analytics for Laravel 4
MIT License
111 stars 33 forks source link

All implemented but I obtain always the same error #3

Closed a-p-co closed 11 years ago

a-p-co commented 11 years ago

Hi! I have the bundle installed on my laravel 4.0 and all the conf is right, but I have an error when I call this route:

ROUTE: Route::get('/list', function() { return print_r(Analytics::webproperties()->listManagementWebproperties("~all")); });

ERROR: The Response content must be a string or object implementing __toString(), "boolean" given.

I also try:

ROUTE Route::get('/list', function() { return Analytics::webproperties()->listManagementWebproperties("~all")); });

ERROR: The Response content must be a string or object implementing __toString(), "object" given.

Any idea? Thanks

thujohn commented 11 years ago

Hi.

Sorry for the delay.

When you have an error like this try dd() ;)

Route::get('/list', function()
{
    $accounts = Analytics::webproperties()->listManagementWebproperties("~all");
    foreach ($accounts as $account){
        var_dump($account);
    }
});
a-p-co commented 11 years ago

Don't worry and thanks you very much for the answer, It works perfectly!