如何检索联系人的生日?

How to retrieve the birthday of a Contact?

我可以通过 Contacts API v3 获得联系人的姓名和地址等信息。但是我似乎无法弄清楚如何过生日。 I have found this link though, but I don't really understand it since its quite different from the others.

$return[] = array (
    'firstname'=> $contact['gd$name']['gd$givenName']['$t'],
    'lastname'=> $contact['gd$name']['gd$familyName']['$t'],
    'email' => $contact['gd$email'][0]['address'],
    'phoneNumber' => $contact['gd$phoneNumber'][0]['$t'],
    'city' => $contact['gd$structuredPostalAddress'][0]['gd$city']['$t'],
    'street' => $contact['gd$structuredPostalAddress'][0]['gd$street']['$t'],
    'country' => $contact['gd$structuredPostalAddress'][0]['gd$country']['$t'],

//I need to know what tu put here
    'birthday' => $contact['gcontact$birthday'],
);

处理生日日期存在一个长期存在的问题,出于某种原因 Google 多年来一直没有解决。

https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3246

在您的代码中添加此代码以从联系人中获取生日 API

 'birthday' => $contact['gContact$birthday']['when'],