从Windows Live获取联系人的电话号码

Get contact's phone numbers from Windows Live

本文关键字:电话号码 联系人 获取 Windows Live      更新时间:2023-09-26

我正在尝试使用Javascript从Windows Live导入联系人,这是我的代码:

WL.init({
    client_id:     "CLIENT_ID",
    redirect_uri:  "https://redirect_uri.php",
    scope:         [ "wl.signin", "wl.basic", "wl.contacts_emails", "wl.phone_numbers"],
    response_type: "token"
});
WL.login({
        scope: ["wl.basic", "wl.contacts_emails", "wl.phone_numbers"]
    }).then(function (resp) {
            WL.api({
                path:   "me/contacts",
                method: "GET"
            }).then(function (response) {
                    console.log("response ", response);
                }, function (responseFailed) {
                    console.log('responseFailed ', responseFailed);
                });
        }, function (responseFailed) {
        });
我得到了联系人的基本信息和他们的电子邮件,但没有电话号码。我查看了API文档,没有看到任何关于导入联系人电话号码的内容。有谁知道联系人的电话号码吗?

我在这个问题中找到了答案:

导入Windows Live Contacts

发现有一个未记录的作用域参数

wl.contacts_phone_numbers