作者:cheer57_275 | 来源:互联网 | 2023-10-15 16:40
Itwasworkingcorrectly,butyesterdayitstartedgiving401.IhavetriedwithGooglecontactsAPI
It was working correctly, but yesterday it started giving 401. I have tried with Google contacts API 401 error RestClient::Unauthorized
它工作正常,但昨天它开始给401.我尝试使用谷歌联系人API 401错误RestClient :: Unauthorized
// handles the click event, sends the query
function getSuccessOutput() {
$.ajax({
url:'https://www.google.com/m8/feeds/contacts/default/full?access_token=ya29.XXXXXXXWLNLPslUUOifL1pu63cGG_DAkEHeh-VjjOGBYzgJAp65-RRrIYmIbGnHiZ5VwC6KpBPYstaSEoBgXOaf0kmuPqIL_-RllkGJKPh1uqTCJoN4k1YZl7Jdp-A&alt=json&max-results=9999',
dataType: "jsonp",
cache: true,
complete: function (response) {
$('#output').html(response.responseText);
},
error: function(xhr, status, error) {
//var err = eval("(" + xhr.responseText + ")");
alert(error.Message);
}
});
return false;
}
1 个解决方案