<script src="https://apis.google.com/js/platform.js?onload=init"></script>
function auth() {
var config = {
'client_id': '클라이언트아이디',
'scope': 'http://www.google.com/m8/feeds'
};
gapi.auth.authorize(config, function() {
fetch(gapi.auth.getToken());
});
}
function fetch(token) {
$.ajax({
url: 'http://www.google.com/m8/feeds/contacts/default/full?max-results=200&alt=json',
dataType: 'jsonp',
data: token
}).done(function(data) {
$.each(data.feed.entry, function( index, value ) {
//받고자하는 데이터출력
});
});
}