title: Call to undefined method Google_Client in Google Analytics while using HelloAnalyticsApi
body: <p>I am using Core reporting API for reporting. I have installed Google PHP API client master on my localhost server and made a file HelloAnalyticsAPi.php in src folder Where I include </p>
  
  <blockquote>
    <p>Google/Client.php
     , 
    Google/Service/Analytics.php</p>
  </blockquote>
  
  <p>files. And use the below details </p>
  
  <pre><code>$client-&gt;setClientId('XXXXXXXXXXX.apps.googleusercontent.com'); 
  $client-&gt;setClientSecret('XXXXXXXXXXX'); 
  $client-&gt;setRedirectUri('http://localhost/analytics/src/HelloAnalyticsApi.php'); 
  $client-&gt;setDeveloperKey('XXXXXXXXXXX'); 
  $client-&gt;setScopes(array('https://www.googleapis.com/auth/analytics.readonly'));
  $client-&gt;setUseObjects(true);
  </code></pre>
  
  <p>I have fatal error on <strong>setUseObjects</strong>. Error is <code>Fatal error: Call to undefined method Google_Client::setUseObjects()</code>. I have done some authorization on my google analytics backend also.</p>
  
  <p>Please let me know the whole process for getting report on my server. Because I am not able to understand the developers guide of google analytics which they have given.</p>
  
  <hr>