从gmail/hotmail/yahoo导入联系人到php [英] import contacts from gmail/hotmail/yahoo to php

查看:137
本文介绍了从gmail/hotmail/yahoo导入联系人到php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将gmail/hotmail/yahoo中的联系人导入到我的php应用程序中,就像在社交网络中找到的一样.

i would like to import contacts from gmail/hotmail/yahoo to my php applications just like those found in social network.

我已经阅读了gmail的操作方法,但我仍不太清楚.它说我将需要执行一个https://www-opensocial.googleusercontent.com/api/people/@me/@self

i've read how gmail does it but im still not very clear about it. it says i would need to do a http request like this https://www-opensocial.googleusercontent.com/api/people/@me/@self

但是我应该如何发送此信息?我尝试在浏览器上运行它,它返回在URL中没有显式用户ID的情况下无法进行匿名请求",那么我该如何传递正确的用户ID ??

but how should i send this info?? i tried running this on the browser and it returns "Cannot make anonymous request without explicit user ID in the URL" so how can i pass the correct user ID then??

对于Yahoo,Yahoo!通讯录API已弃用,现在我们应该使用通讯录API.有人使用这个b4吗?

for yahoo, the Yahoo! Address Book API is deprecated and now we should use Contacts API. have anyone use this b4??

推荐答案

URL似乎与

It looks like that URL corresponds to osapi.people, which suggests that you can replace the token @me with a profile name.

我通过访问该URL并将我自己的Google登录名替换为@me进行了验证.

I verified this by visiting that URL and replacing the @me with my own Google login.

JSON-RPC文档建议假设发出请求的应用程序有权提取此数据,则可以用@friends替换@self令牌以获得朋友列表.

The JSON-RPC documentation suggests that you can replace the @self token with @friends to get a friend list, assuming the application making the request is authorized to pull down this data.

很遗憾,这是我所知道的,是在Google查找文档后几分钟内发现的.

Unfortunately this is all I know, discovered through a few minutes in Google finding the docs.

这篇关于从gmail/hotmail/yahoo导入联系人到php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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