Fetch gmail contacts
script type="text/javascript" src="http://www.google.com/
<script src="https://apis.google.com/
<script src="http://ajax.googleapis.
<script>
function auth() {
var config = {
'client_id': '243480442475-
'scope': 'https://www.google.com/m8/
};
gapi.auth.authorize(config, function() {
var contacts = fetch(gapi.auth.getToken());
alert(contacts)
});
}
function fetch(token) {
$.ajax({
url: 'https://www.google.com/m8/
dataType: 'jsonp',
data: token
}).done(function(data) {
console.log(JSON.stringify(
});
}
</script>
<button onclick="auth();">GET CONTACTS FEED</button>
No comments:
Post a Comment