Skip to content

Instantly share code, notes, and snippets.

@JaiParakh
Last active June 14, 2019 03:29
Show Gist options
  • Save JaiParakh/714c2f105407511d0452ba18153ad2fc to your computer and use it in GitHub Desktop.
Save JaiParakh/714c2f105407511d0452ba18153ad2fc to your computer and use it in GitHub Desktop.
//Deletes the draft.
deleteDraft(id){
this.attachment.gmail.users.drafts.delete({
id: id,
userId: this.me
});
}
//Lists all drafts.
listAllDrafts(){
this.gmail.users.drafts.list({
userId: this.me
}, (err, res) => {
if(err){
console.log(err);
}
else{
console.log(res.data);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment