Yeah - I am using several web services in my project. The client that
I am working on is a bot that looks at any mentions to the twitter
account and parses them to run a search in another service. The other
service has an rest xml api and so I am wanting to reuse the Http
class for those requests as well. I also make my own calls out to the
bitly api to shorten urls and it has a similar api.
The Http class in the twitter-api project is really nice for other
rest/xml request too especially with the retry support and error
handling built in.
Ideally it would be refactored so that the Http class didn't have any
twitter specific functionality and then have a TwitterHttp class that
had the additional twitter support. I don't have time right at the
moment to do that refactoring and submit it back as a patch - so I did
this hack instead.
Also the TwitterException class could really be renamed to
HttpException probably and used in a more generic sense, but it is
usable as is atm.
Thanks!
James