lucaspiller / twerl

Erlang client for the Twitter Streaming API
MIT License
27 stars 13 forks source link

Add oauth support #2

Open lucaspiller opened 11 years ago

lucaspiller commented 11 years ago

Twitter will be removing HTTP basic authentication from the streaming API at the beginning of June.

WIP in the oauth branch.

pdincau commented 10 years ago

Any news about this feature?

Thanks.

arjan commented 10 years ago

Ping, any update on this?

lucaspiller commented 10 years ago

No it isn't complete yet, you can see WIP so far which is basically just refactoring the existing code to allow different authentication schemes. If you already have the oAuth token, all that is required to use it is extend the method that generates the request headers:

https://github.com/lucaspiller/twerl/blob/729cb645f1a9c0f4e2c3b4ff5d251f8caf6ead00/src/stream_client_util.erl#L13-L16

I haven't had time to work on this recently, however PRs are appreciated :)

arjan commented 10 years ago

Yup, working on a PR as we speak :) In a few days I'll have something.

arjan commented 10 years ago

@lucaspiller what kind of local server are you testing again for espec?

lucaspiller commented 10 years ago

Good question. I'll have a look and see if I can figure it out...

arjan commented 10 years ago

FYI, https://github.com/arjan/twerl/commits/refactoring still working on it. I need reconnect behaviour.. :)