title: Legacy People API has not been used in project
body: <p>I am getting error when calling google sign in API. Error is</p>
  <blockquote>
  <p>&quot;Legacy People API has not been used in project ************ before or it is disabled&quot;</p>
  </blockquote>
  <p>But the people API is enable. How to solve this error ?</p>
  <p>This is my google api url is this is sufficient to solve my problem</p>
  <pre><code>if (empty($_POST['google_key'])) {
          $error_code    = 5;
          $error_message = 'google_key (POST) is missing';
      } else {
          $app_key = $_POST['google_key'];
          // https://www.googleapis.com/plus/v1/people/me?access_token={$access_token}&amp;key={$app_key}
          $get_user_details = fetchDataFromURL(&quot;https://people.googleapis.com/v1/people/me?access_token={$access_token}&amp;key={$app_key}&quot;);
          $json_data = json_decode($get_user_details);
          if (!empty($json_data-&gt;error)) {
              $error_code    = 4;
              $error_message = $json_data-&gt;error;
          } else if (!empty($json_data-&gt;id)) {
              $social_id = $json_data-&gt;id;
              $social_email = $json_data-&gt;emails[0]-&gt;value;
              $social_name = $json_data-&gt;displayName;
              if (empty($social_email)) {
                  $social_email = 'go_' . $social_id . '@google.com';
              }
          }
      }
  </code></pre>
  <p>this is my code where m using app key as google key and the access token now explain me where's the problem</p>