如何通过电子邮件检索联系人与谷歌API。 PHP [英] How to retrieve contact by email with google api. PHP

查看:121
本文介绍了如何通过电子邮件检索联系人与谷歌API。 PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用

https://www.google.com/m8/feeds/contacts/default/full/(可选 contactId)



但我需要通过电子邮件而不是id访问联系人。



有没有办法解决这个问题?我试图解决这个问题一段时间, t在文档中找到任何帮助。



我一直在寻找答案:

https://developers.google.com/google-apps/contacts/v3/#retrieving_contacts_using_query_parameters

解决方案

可能您已经有了答案,但如果您还在寻找:

  $ query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/contacts/default/full?q='.$Number) ; 

其中 $ Number 可以是联系人的任何部分(电子邮件,地址或电话号码)

I'm retrieving contacts with

https://www.google.com/m8/feeds/contacts/default/full/(optional contactId)

But I need to fetch contacts by email instead of 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

解决方案

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 )

这篇关于如何通过电子邮件检索联系人与谷歌API。 PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆