Last active
June 14, 2019 03:29
-
-
Save JaiParakh/714c2f105407511d0452ba18153ad2fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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