jquery/ajax 関数内で Google plus connect API をトリガーしようとしています。私が得る応答は未定義です。Firebug は空の応答を示します。
これは私が使用しているコードです:
function gPlusConnect ()
{
console.debug('line 401 ajax gestartet');
result=$.ajax({
type: 'POST',
async: false, // false
url: 'https://accounts.google.com/o/oauth2/auth',
data: ({
scope:'https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile',
state:'/profile',
redirect_uri:'https://ssl.webpack.de/learnface.de/donation/launchpages',
response_type:'code',
client_id:'.........82.apps.googleusercontent.com',
})
}).responseText;
console.debug('index.php 415 ajax ends with '+result+' from g+');
}
firebug での結果は次のとおりです。
Header Post Antwort HTML
index.php 415 ajax ends undefined from g+
誰もこれを成功させましたか?より良い代替案をお勧めしますか?