title: Create Contact with Google People API + PHP (Server to Server)
body: <p>I'm trying to create a new contact through google people api + PHP (Server-to-server) using the code below and the code apparently runs without errors, but no contacts are created at: <a href="https://www.google.com/contacts/" rel="nofollow noreferrer">https://www.google.com/contacts/</a></p>
  
  <p>Querying the contacts as described here (<a href="https://developers.google.com/people/quickstart/php#step_3_set_up_the_sample" rel="nofollow noreferrer">https://developers.google.com/people/quickstart/php#step_3_set_up_the_sample</a>) I see that the contact was created.</p>
  
  <p>I use Google App Suite.</p>
  
  <p>Is there anything wrong with my code?</p>
  
  <pre><code>&lt;?php
  require $_SERVER['DOCUMENT_ROOT'].'/../vendor/autoload.php';
  $client = new Google_Client();
  $client-&gt;setAuthConfig('my configs...');
  $client-&gt;addScope(Google_Service_PeopleService::CONTACTS);
  $service = new Google_Service_PeopleService($client);
  
  $person = new Google_Service_PeopleService_Person();
  
  $email = new Google_Service_PeopleService_EmailAddress();
  $email-&gt;setValue('test@test.com');
  $person-&gt;setEmailAddresses($email);
  
  $name = new Google_Service_PeopleService_Name();
  $name-&gt;setDisplayName('User de Test');
  $person-&gt;setNames($name);
  
  $exe = $service-&gt;people-&gt;createContact($person);
  
  print_r($exe);
  </code></pre>