【发布时间】:2021-05-26 22:15:45
【问题描述】:
我正在尝试通过 People API 自动将“隐藏”/“其他联系人”移动到“我的联系人”组/成员中,但我收到 404 not found 错误。
我的简化代码如下所示:
function copyOtherContactToMyContactsGroup() {
var otherContactsList = People.OtherContacts.list({
pageSize:10,
readMask: 'emailAddresses,names,phoneNumbers',
});
var otherContacts = otherContactsList.otherContacts;
for(var oC in otherContacts) {
var resourceName = otherContacts[oC].resourceName;
People.OtherContacts.copyOtherContactToMyContactsGroup(resourceName, {"copyMask": "emailAddresses,names,phoneNumbers"});
};
}
var resourceName = "otherContacts/c1528566360341757340";
我已经成功使用了具有上述资源名称的 API Explorer。
感谢您的任何帮助或建议。
【问题讨论】: