gmail_sdk
v1.0.21
Published
Libray used to integrate gmail
Downloads
4
Readme
Gmail Sdk
A lite version for Gmail sdk to help you to fetch messages and attachments
Authors
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
SDK_KEY
⬇️
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
.eyJnbWFpbCI6InYxLjAuMCIsImlhdCI6MTY
5NjI0Mjg4NSwiZXhwIjoxNzAxNTEzMjg1fQ.
kIv8RONqbUS5Nwhv0SVKkQ9PcLVf7LjpjqSv
r3ELxag
const gmailSdk = new GmailSdk("YOUR_ACCESS_TOKEN","SDK_KEY");
let messages = await gmailSdk.getMessages();
let messageData = await gmailSdk.getMessageData("MESSAGEID");
let attachmentData = await gmailSdk.getAttachmentData("MESSAGEID","ATTACHMENTID);