jhk753 / gmail-ruby-api

Ruby interface for Gmail API
Other
26 stars 20 forks source link

Creating multiple parallel gmail clients. #31

Open Carpela opened 8 years ago

Carpela commented 8 years ago

Is there a way to create multiple gmail clients at the same time?

I'm struggling a little to work out how to do it.

i.e.

@gmail1(account="bob@gmail.com") @gmail2(account="dave@gmail.com") @gmail1::Message.all #gets bob's email @gmail2::Message.all #gets dave's email

Trying to run multiple threads hitting multiple inboxes at once.