我正在尝试使用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文档,但没有看到有关导入联系人电话号码的任何信息。有人知道如何获取联系人的电话号码吗?
答案 0 :(得分:0)