title: Retrieve birthdays and genders from people API in server side with token generated client side
body: <p>I would like to retrieve birthday and gender from google people API in my backend nodejs server.
  The access token is generated client side with those 2 scopes:
  <a href="https://www.googleapis.com/auth/user.birthday.read" rel="nofollow noreferrer">https://www.googleapis.com/auth/user.birthday.read</a>
  <a href="https://www.googleapis.com/auth/userinfo.profile" rel="nofollow noreferrer">https://www.googleapis.com/auth/userinfo.profile</a></p>
  
  <p>The client sends the accessToken and the server queries the people API in the following way :</p>
  
  <pre><code>const {google} = require('googleapis');
  async function getDataFromPeopleAPI(googleId, accessToken) {
      try {
  
          let params = {
              resourceName: `people/${googleId}`,
              personFields: 'birthdays,genders',
              access_token: accessToken //generated by client
          };
          let res = await google.people({
              auth: GOOGLE_API_KEY //API key
          }).people.get(params);
          let {birthdays, genders} = res.data;
  
      } catch (e) {
  
      }
  };
  </code></pre>
  
  <p>The issue is that even though my birthday is set as public and my gender the people api always returns the same result . I don't receive any error code but I never receive the data I want. Here is the response I get:</p>
  
  <pre><code>  "resourceName": "people/102865456870877320332",
    "etag": "%EgUBBwg3LhoEAQIFBw=="
  }
  </code></pre>
  
  <p>What am I doing wrong when querying the people API ? 
  Thanks !</p>