tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/68-lighthouserbbasecamprb-not-compatibleLighthouse: Discussion 2012-06-29T22:06:10Ztag:help.lighthouseapp.com,2008-09-20:Comment/453962009-02-11T14:41:37Z2009-02-11T14:41:37Zlighthouse.rb/basecamp.rb not compatible<div><p>I've encountered a connection / authentication problem using
both APIs because the Lighthouse API is overriding ActiveResource's
<em>authorization_header</em> method.</p>
<p>Commenting out lines 359-366 in lighthouse.rb solved the
problem. (since I'm using token authentication)</p>
<p>Maybe this is somehow related to your problem.</p>
<p>Cheers</p>
<p>Stefan</p></div>Stefan Schüßlertag:help.lighthouseapp.com,2008-09-20:Comment/453962009-02-11T17:57:18Z2009-02-11T17:57:18Zlighthouse.rb/basecamp.rb not compatible<div><p>Try swapping the order. The basecamp library overwrites
<code>Hash#to_xml</code> and makes it incompatible. This may be
tricky if both libraries make subtle differences to commonly used
methods.<br></p>
<p>I'll see if I can do something about the way the Lighthouse API
overrides the <code>authorization_header</code> method. Though, I
have no idea why this would affect Basecamp... its api client
library was written before the ActiveResource library was even a
twinkle in David's eye. However, I personally put in a lot of work
into ActiveResource to make the Lighthouse API client lib.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/453962009-02-11T18:29:25Z2009-02-11T18:29:25Zlighthouse.rb/basecamp.rb not compatible<div><p>Maybe Basecamp's ruby wrapper was updated. The current version
does use ActiveResource:
http://developer.37signals.com/basecamp/basecamp.rb</p></div>Stefan Schüßlertag:help.lighthouseapp.com,2008-09-20:Comment/453962009-02-11T18:47:01Z2009-02-11T18:47:01Zlighthouse.rb/basecamp.rb not compatible<div><p>stefan: oh that makes more sense... barnaclebarnes: try updating
the basecamp api and removing the authorization_header code as
stefan suggested.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/453962009-02-11T21:14:49Z2009-02-11T21:14:49Zlighthouse.rb/basecamp.rb not compatible<div><p>Updating basecamp.rb to the latest version and removing the
reference to authorization_headerin lighthouse.rb seems to have
work. Thanks for the pointers.</p></div>Glen Barnes