我正在尝试通过 javascript 删除 Google 联系人。根据我定义的 Google Contacts api v3:
scope to https://www.google.com/m8/feeds
并通过身份验证的用户,并获得了 access_token。根据此页面上的 v3 文档,尝试删除这样的联系人:
$.ajax({
url: 'https://www.google.com/m8/feeds/contacts/default/full/temp123info@gmail.com?access_token=ya29.AHES6ZQoqUgoYmDzXyo-WsSlKv1-_2D_HzmXuH-wBuTR3e1ADxO0VWM',
type: 'DELETE',
success: function(res)
{
console.log(res);
},
error: function(error)
{
console.log(error);
}
});
收到此错误:
"NetworkError: 405 Method Not Allowed - https://www.google.com/m8/feeds/contacts/laiquedaudpota43@gmail.com/full/temp123info@gmail.com?access_token=ya29.AHES6ZQoqUgoYmDzXyo-WsSlKv1-_2D_HzmXuH-wBuTR3e1ADxO0VWM"
任何帮助,将不胜感激。谢谢。