[英]How to retrieve contact by email with google api. PHP
I'm retrieving contacts with 我正在检索与
https://www.google.com/m8/feeds/contacts/default/full/(optional contactId) https://www.google.com/m8/feeds/contacts/default/full/(可选contactId)
But I need to fetch contacts by email instead of id. 但是我需要通过电子邮件而不是ID来获取联系人。
Is there a way to to this? 有没有办法做到这一点? I have tried to solve this problem for a time now and can't find any help in the documentation.. 我已经尝试解决此问题一段时间了,但是在文档中找不到任何帮助。
I have been searching for an answer here: 我一直在这里寻找答案:
https://developers.google.com/google-apps/contacts/v3/#retrieving_contacts_using_query_parameters https://developers.google.com/google-apps/contacts/v3/#retrieving_contacts_using_query_parameters
Probably you have the answer already but in case your still looking : 可能您已经有了答案,但万一您仍在寻找:
$query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/contacts/default/full?q='.$Number);
where $Number
can be any part of the contact (email , address or phone number ) 其中$Number
可以是联系人的任何部分(电子邮件,地址或电话号码)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.