Php Google People API/方法:contactGroups.list
这是我用来从Google People API获取联系人的示例代码。很好Php Google People API/方法:contactGroups.list,php,rest,api,google-contacts-api,google-people,Php,Rest,Api,Google Contacts Api,Google People,这是我用来从Google People API获取联系人的示例代码。很好 $people_service = new Google_Service_PeopleService($client); // TODO: Use service object to request People data $connections = $people_service->people_connections->listPeopleConnections ('people/me', ar
$people_service = new Google_Service_PeopleService($client); // TODO: Use service object to request People data
$connections = $people_service->people_connections->listPeopleConnections ('people/me',
array('personFields' => 'names,emailAddresses,biographies',
'pageSize' => 25,
'sortOrder' => 'FIRST_NAME_ASCENDING',
));
但我不知道如何列出和管理联系人组(如朋友、家人等)
这是我正在尝试的代码,但没有成功
$groups_list = $people_service->contactGroups->listcontactGroups();
我可以找到的资料来源:
$groups_list = $people_service->contactGroups->listcontactGroups();
$group_list->getContactGroups( );
我认为还有一个类的名字是Google\u Service\u PeopleService\u ContactGroup。但我仍然不知道如何给我的团队打电话。请详细说明问题所在。你有错误吗?你得到的答复是空的吗?谢谢你,阿莫斯。Rebot先生的解决方案奏效了。有趣的是,我一看到你的建议就尝试了一下,但没有奏效(显然我犯了一个错误)。从昨天开始我尝试了很多其他的方法。几分钟前,我又试了一次,现在它工作了。谢谢你,雷伯特先生。