我正在尝试在我的网络应用程序中导入所有AOL电子邮件联系人。为此,我使用
中给出的cardmagic gem我分叉代码&替换以下代码
AOL_NUM = "29970-343" # this seems to change each time they change the protocol
CONTACT_LIST_URL = "http://webmail.aol.com/#{AOL_NUM}/aim-2/en-us/Lite/ContactList.aspx?folder=Inbox&showUserFolders=False"
CONTACT_LIST_CSV_URL = "http://webmail.aol.com/#{AOL_NUM}/aim-2/en-us/Lite/ABExport.aspx?command=all"
与
AOL_NUM = "32992-111" # this seems to change each time they change the protocol
CONTACT_LIST_URL = "http://mail.aol.com/#{AOL_NUM}/aol-6/en-us/Lite/ContactList.aspx?folder=Inbox&showUserFolders=False"
CONTACT_LIST_CSV_URL = "http://mail.aol.com/#{AOL_NUM}/aol-6/en-us/Lite/ABExport.aspx?command=all"
我仍然收到错误
CSV::IllegalFormatError: CSV::IllegalFormatError
这是由于过时的AOl_NUM吗?或者aol.rb还有其他变化吗? 谢谢。
答案 0 :(得分:1)
我相信它应该有效。包含gem之后你有没有执行更新包?执行bundle update
并重新启动服务器。