如果有oauth的aol api可用。使用oauth api获取aol联系人
我想要的是使用oauth导入aol联系人。我得到了这样一个谷歌,雅虎& hotmail。
Hotmail给我电子邮件散列,而不是电子邮件ID。所以,我还会问,如果有一些方法可以使用oauth获取电子邮件ID,则可用于Hotmail。
谢谢。
如果有oauth的aol api可用。使用oauth api获取aol联系人
我想要的是使用oauth导入aol联系人。我得到了这样一个谷歌,雅虎& hotmail。
Hotmail给我电子邮件散列,而不是电子邮件ID。所以,我还会问,如果有一些方法可以使用oauth获取电子邮件ID,则可用于Hotmail。
谢谢。
不,AOL没有一般可用的OAuth API。我已经搜索过,但无法找到AOL联系人的OAuth API。自2008年以来,美国在线的联系人API有一个“即将推出”的页面,但现在似乎已经消失。
要回答您的第二个问题: Microsoft已更改其在您的联系人列表中输入的电子邮件地址的政策。他们不再属于你,所以不再是你分享他们的权利。您可以使用来自Windows Live的CloudSponge来import contacts,包括电子邮件地址。我们目前支持委派的身份验证导入,并回退到CSV导入方法。
声明:我为CloudSponge工作。
要从Hotmail导入朋友的电子邮件地址,我们需要将作用域添加为“wl.contacts_emails”。
我张贴的完整代码它
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<script src="//js.live.net/v5.0/wl.js"></script>
<script type="text/javascript">
WL.init({ client_id: **WRITE YOUR CLIENTID HERE**,
redirect_uri: **place ur redirect page url** });
WL.login({ scope: "wl.contacts_emails" }).then(
function(response) {
getContacts();
},
function(response) {
log("Could not connect, status = " + response.status);
}
);
function getContacts() {
WL.api({ path: "/me/contacts", method: "GET" }).then(
onGetContacts,
function(response) {
log("Cannot get contacts: " + JSON.stringify(response.error).replace(/,/g, ",\n"));
}
);
}
function onGetContacts(response) {
var items = response.data;
for (var i = 0; i < 5; i++) {
if (i > items.length) {
break;
}
getContactProperties(items[i].id);
}
}
function getContactProperties(contactId) {
WL.api({ path: contactId, method: "GET" }).then(onGetContactProperties);
}
function onGetContactProperties(response) {
log(JSON.stringify(response).replace(/,/g, ",\n"));
}
function log(message) {
var child = document.createTextNode(message);
var parent = document.getElementById('JsOutputDiv') || document.body;
parent.appendChild(child);
parent.appendChild(document.createElement("br"));
}
</html>
您可以访问通过CloudSponge AOL的OAuth用户体验。
自己尝试一下这里: http://www.cloudsponge.com/test-drive
当你在那里,看看我们的Hotmail整合
...就像一个魅力(无哈希!)!
声明:我为CloudSponge工作。
感谢您的回复。我会尽快测试并提供反馈。 – Parth