我试图使用Google的ClientLogin方法向Google帐户进行身份验证。我试图通过jQuery来做到这一点;然而,用我目前的代码,我收到了来自Google的405方法不允许回应。通过jQuery实施Google ClientLogin
下面是我的代码示例:
$(document).ready(function() {
$('#connect').click(function(){
$.ajax({
type: "POST",
contentType: "application/x-www-form-urlencoded",
url: "https://www.google.com/accounts/ClientLogin",
data: ({accountType:"HOSTED_OR_GOOGLE", Email:"[email protected]", Passwd:"UserPass", service:"cl", source:"User-APP-01"})
});
});
});
预先感谢您的协助。任何帮助将不胜感激。
这是我最后不得不整理东西让我一直在寻找的结果的方式......谢谢你的回应@cichy – 2011-10-15 20:23:55