[Help] How to use 2 different Gmail account in one project?
Closed this issue · 3 comments
Marcin3 commented
In my project, I use different users for different environments. There is any way to use 2 different gmail-token?
I am thinking about copy proper file according to the environment but I am not sure if it is the best solution
Extra question
What is the default value of these parameters?
- timeTillNextCallInSeconds
- maxWaitTimeInSeconds?
ismail-codinglab commented
Question 1
Yes!
https://github.com/ismail-codinglab/gmail-inbox/blob/master/src/Inbox.ts
Inbox class accepts 2 parameters
Line 36 in aa71619
You can do
let inbox1 = new Inbox('inbox1-secret.json','inbox1-token.json');
let inbox2 = new Inbox('inbox2-secret.json','inbox2-token.json');
Question 2
Lines 151 to 152 in aa71619
they are
5
and 60
respectivelyismail-codinglab commented
If this answers your question let me know n you can close it
Marcin3 commented
Thank you for your answer.