import contacts from multiple accounts in gmail

我的梦境 提交于 2019-12-23 05:06:41

问题


I have a rails application and i am using omnicontacts gem to import contacts from yahoo, gmail, and outlook.Its working fine.But once i import contacts from any account say of gmail, and tries to import contacts from another account it does not ask me to login using another account for importing contacts from it. Here is my omnicontacts initializer.Please help, I can add more info if needed.

config/initializers/omnicontacts.rb

Rails.application.middleware.use OmniContacts::Builder do
   importer :gmail, ENV['GMAIL_ID'], ENV['GMAIL_SECRET'], redirect_path: '/invites/gmail/contact_callback', max_results: 1000
   importer :yahoo, ENV['YAHOO_ID'], ENV['YAHOO_SECRET'], callback_path: '/invites/yahoo/contact_callback', max_results: 1000
   importer :outlook, ENV['OUTLOOK_APP_ID'], ENV['OUTLOOK_APP_KEY'], redirect_path: '/invites/outlook/contact_callback', max_results: 1000
end

来源:https://stackoverflow.com/questions/43784061/import-contacts-from-multiple-accounts-in-gmail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!