2

Google の連絡先の詳細usernameを知りたいのですがemail、、、picture。このコードは正常にメールを取得しています:

var config = {
  'client_id': 'XXXXXXXXXXXX.apps.googleusercontent.com',
  //'scope': 'https://www.googleapis.com/auth/urlshortener',
  'scope': 'https://www.google.com/m8/feeds'
};

gapi.auth.authorize(config, function () {
  var authParams = gapi.auth.getToken(); // from Google oAuth
  authParams.alt = 'json';
  $.ajax({
    url: 'https://www.google.com/m8/feeds/contacts/default/full',
    dataType: 'jsonp',
    data: authParams,
    success: function (data) {
      alert(JSON.stringify(data))
    }
  });
});

このデータはユーザーのメール アドレスのみを表示しますが、ユーザー名とプロフィール写真も必要です。

これは可能ですか?私を助けてください。

4

0 に答える 0