I have to use oauth with event machine and I'm trying to figure out
how to do that. I see there's an extension to em-http-request
HttpClient, but the way I understood it I already have to have the
access token (possibly saved somewhere), so the extension just signs
the requests. Did I get it right?
In my case I don't have an access token, so I have to get a request
token first. I thought of using consumer.get_request_token, but it
seems it only uses Net:HTTP, that won't work with event machine. Would
it work if I try to somehow convert the Net:HTTP calls to em-http-
request? Or that would be just too much worthless work? Maybe an
easier approach is to get the request token without oauth library (a
normal em-http-request call), save it and then use the extension?
If I understood something wrong, please put me back on track
(hopefully with a tiny example).
I researched and found this thread, but it was open before the
transfer to Aaron so I don't think anyone updated it.