title: How can I retrieve phone numbers from Google Directory API?
body: <p>I'm using Directory API with PHP to retrieve all users. 
  A response for a user who has a phone number added looks like this:</p>
  
  <blockquote>
    <p>Google_Service_Directory_User Object ( [collection_key:protected] =>
    nonEditableAliases [addresses] => [agreedToTerms] => 1 [aliases] =>
    [changePasswordAtNextLogin] => [creationTime] =>
    2016-11-29T14:21:30.000Z [customSchemas] => [customerId] => 1234
    [deletionTime] => [emails] => Array ( [0] => Array ( [address] =>
    test@companymail.com [primary] => 1 ) [1] => Array ( [address] =>
    test@companymail.com ) ) [etag] => "tagg" [externalIds] =>
    [hashFunction] => [id] => 12344 [ims] => [includeInGlobalAddressList]
    => 1 [ipWhitelisted] => [isAdmin] => [isDelegatedAdmin] => 1 [isMailboxSetup] => 1 [kind] => admin#directory#user [lastLoginTime]
    => 2016-12-12T10:13:31.000Z [nameType:protected] => Google_Service_Directory_UserName [nameDataType:protected] =>
    [nonEditableAliases] => Array ( [0] =>
    test@companymail.com.test-google-a.com [1] => test@companymail.com )
    [notes] => [orgUnitPath] => / [organizations] => [password] =>
    <strong>[phones] =></strong> [primaryEmail] => test@companymail.com [relations] => [suspended] => [suspensionReason] => [thumbnailPhotoEtag] =>
    [thumbnailPhotoUrl] => [websites] =>
    [internal_gapi_mappings:protected] => Array ( ) [modelData:protected]
    => Array ( [name] => Array ( [givenName] => TestNAme [familyName] => TestNAme [fullName] => TestNAme TestNAme ) ) [processed:protected] =>
    Array ( ) )</p>
  </blockquote>
  
  <p>The phone number was set 5 days ago (it's there), but as you can see the "phones" array is empty.</p>
  
  <p>This is how I use the API:</p>
  
  <pre><code>$directory_service = new Google_Service_Directory($client);
  $params = array('domain' =&gt; $domain);
  $results = $directory_service-&gt;users-&gt;listUsers($params);
  $users = $results-&gt;getUsers();
  </code></pre>
  
  <p>I can't figure out what's wrong. Do I need to enable any settings? 
  How can I get users' phone numbers?</p>
  
  <p>Thanks in advance.</p>