我正在尝试使用 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 文档,没有看到任何有关导入联系人电话号码的信息。有人知道获取联系人电话号码的方法吗?