Search code examples
ajaxjquerygdata-api

GData API and cross-domain ajax calls


I want to get xml data from google server using it's API. so, i can't make any changes to response. So, How do I make this call that work for me:

 $.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); });

I want make some GET, PUT, DELETE call as well so, I don't want to use any function like $.getJSON();I want to make it possible through $.ajax() only.


Solution

  • I think only way to do this is use of server side scripting language.