【问题标题】:get aol contacts using oauth api使用 oauth api 获取 aol 联系人
【发布时间】:2012-10-25 06:03:20
【问题描述】:

如果有用于 oauth 的 aol api 可用。

我想要的是使用 oauth 导入 aol 联系人。我得到了这样一个google、yahoo和hotmail的api。

Hotmail 为我提供电子邮件哈希而不是电子邮件 ID。所以,我还问一个问题,如果有一些方法可以使用 oauth 获取电子邮件 ID 可用于 hotmail。

谢谢。

【问题讨论】:

    标签: oauth hotmail aol


    【解决方案1】:

    不,AOL 没有普遍可用的 OAuth API。我已经搜索过,但找不到 AOL 联系人的 OAuth API。自 2008 年以来,AOL 在其联系人 API 上有一个“即将推出”页面,但现在似乎已经消失了。

    回答你的第二个问题: Microsoft 已更改有关您在联系人列表中输入的电子邮件地址的政策。它们不再属于您,因此您不再有权分享它们。您可以从 Windows Live 使用 CloudSponge 到 import contacts,包括电子邮件地址。我们目前支持委托身份验证导入,我们回退到 CSV 导入方法。

    免责声明:我为 CloudSponge 工作。

    【讨论】:

      【解决方案2】:

      要从 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>
      

      【讨论】:

      • 感谢您的回复。我将对其进行测试并尽快提供反馈。
      【解决方案3】:

      您可以通过 CloudSponge 获得 AOL 的 OAuth 用户体验。

      在这里亲自尝试一下: http://www.cloudsponge.com/test-drive

      当您在那里时,请查看我们的 Hotmail 集成(无哈希!)

      ...像魅力一样工作!

      免责声明:我为 CloudSponge 工作。

      【讨论】:

        猜你喜欢
        • 2013-12-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-04-23
        • 2012-11-24
        • 1970-01-01
        • 1970-01-01
        • 2012-08-24
        相关资源
        最近更新 更多