I'm using the twitter module to talk to a Laconica instance on a LAN, for some reason, Laconica requires more auth verification than twitter.com so I had to add in Autherization headers for each request, so I put the headers in a function and called it as the headers parameter for drupal_http_request

CommentFileSizeAuthor
twitter.patch17.75 KBjosh waihi

Comments

Leeteq’s picture

Subscribing.

josh waihi’s picture

Status: Active » Needs review

I just look through the patch I submitted and realised there is a whole bunch of stuff in there where the diff must have compared the wrong versions, however the gist of the patch is there using a function called _twitter_auth_headers

eaton’s picture

I'm a bit concerned about this, as authenticated request are throttled tighter, and Twitter.com recommends using the public requests rather than auth'd ones whenever possible to lower the impact of API calls. Hmmm...

josh waihi’s picture

Status: Needs review » Needs work

@eaton, I guess the best thing to do here then would be to make it an option to turn 'force auth' on/off with the default of off.

Agreed that most people will use this module for twitter, itscan also be used for any twitter like API service - these generally need auth for most calls.

steinmb’s picture

Status: Needs work » Closed (won't fix)