Skip to content

Instantly share code, notes, and snippets.

@theirf
Created September 11, 2014 17:43
Show Gist options
  • Save theirf/71464ac6e9ead6425074 to your computer and use it in GitHub Desktop.
Save theirf/71464ac6e9ead6425074 to your computer and use it in GitHub Desktop.
gapi.client.load('gmail', 'v1', function(){
listThreads('me', function(dataResult){
$.each(dataResult, function(i, item){
getThreads('me', item.id, function(dataMessage){
var temp = dataMessage.messages[0].payload.headers;
$.each(temp, function(j, dataItem){
if(dataItem.name == 'From'){
console.log(dataItem.value);
}
});
});
});
});
@MaximusSu
Copy link

Hi theirf, have you found the solution for your Gmail Api problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment