Open egithinji opened 4 years ago
It works when I pass a Token with the Access variant instead of the Bearer variant.
I confirm that the access token (Token::Access
) works but neither the Token::Bearer
variant nor the token output from the auth::bearer_token
that is derived from a KeyPair
. In short, it seems that the API changed on the Twitter side and that bearers do not work anymore.
I'm using the example here: https://github.com/egg-mode-rs/egg-mode/blob/master/examples/stream_filter.rs Just that I'm entering my token differently in the start function. The same token works fine when fetching tweets using egg_mode::tweet::user_timeline. But when fetching the stream I get 401 unauthorized.
Am I doing something wrong?
`#[tokio::main] async fn main() {
}`