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
| Comment | File | Size | Author |
|---|---|---|---|
| twitter.patch | 17.75 KB | josh waihi |
Comments
Comment #1
Leeteq commentedSubscribing.
Comment #2
josh waihi commentedI 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_headersComment #3
eaton commentedI'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...
Comment #4
josh waihi commented@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.
Comment #5
steinmb commented