我想從谷歌服務器使用它的API獲取xml數據。所以,我無法對響應進行任何更改。因此,如何使這個調用爲我工作:GData API和跨域AJAX調用
$.ajax({
type: 'POST',
url: 'https://www.google.com/accounts/ClientLogin',
contentType: 'application/x-www-form-urlencoded',
data: { accountType : "HOSTED", Email : ""+Adminemail+"", Passwd : ""+adminpass+"", service : "cp"}, // cp for contact service..
success: function (response) {
alert(response); });
我想做出一些GET,PUT,DELETE通話以及因此,我不想使用像$ .getJSON任何函數();我想通過$ .ajax()來實現。
我不認爲有一個簡單的方法。我甚至不覺得有一個困難的方法。 – GolezTrol
那你覺得我怎麼克服這種情況呢? –
轉到服務器端解決方案。看到我的答案。你使用什麼服務器軟件? – GolezTrol