twerl icon indicating copy to clipboard operation
twerl copied to clipboard

Add oauth support

Open lucaspiller opened this issue 12 years ago • 7 comments

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

WIP in the oauth branch.

lucaspiller avatar May 05 '13 22:05 lucaspiller

Any news about this feature?

Thanks.

pdincau avatar Oct 08 '13 18:10 pdincau

Ping, any update on this?

arjan avatar Dec 10 '13 12:12 arjan

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 :)

lucaspiller avatar Dec 10 '13 13:12 lucaspiller

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

arjan avatar Dec 10 '13 13:12 arjan

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

arjan avatar Dec 10 '13 13:12 arjan

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

lucaspiller avatar Dec 10 '13 20:12 lucaspiller

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

arjan avatar Dec 10 '13 20:12 arjan