我试图使用以下gem将Rails应用程序与ActiveCampaign客户关系管理集成起来:营销活动
ac = ActiveCampaign::Client.new({:api_method => 'https://website.api-us1.com',:api_key => 'mykey'})
response = ac.contact_sync({ :email => "test@test.com",:first_name => "John",:last_name => "Doe" })请求不成功,Rails返回以下内容:
undefined method `query=' for #<HTTPI::Request:0x007f914b61f8d0>知道为什么会这样吗?我已经想了一段时间了,但还是找不到真相.
更新
我尝试将HTTPI更新为较新的版本(2+),原来的错误消失了,但现在我看到了以下错误:
757: unexpected token at '<div align="center">
<div style="font-size:15px; color:#333; padding: 50px; font-family:Arial, Helvetica, sans-serif;">
<div style="font-size:33px; padding:12px;">Not Found</div>
<div>Sorry, this page could not be found.<br />
Please check your link/URL and try again.</div>
</div>
</div>'有什么想法吗?
https://stackoverflow.com/questions/26406039
复制相似问题