egg-mode-rs/egg-mode

Conversations example doesn't work

Closed this issue · 1 comments

➜  cr --example conversations
    Finished dev [unoptimized + debuginfo] target(s) in 0.13s                      
     Running `target/debug/examples/conversations`

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: TwitterError(TwitterErrors { errors: [TwitterErrorCode { message: "Sorry, that page does not exist.", code: 34 }] })', libcore/result.rs:1009:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Has the URL changed or been removed?

I think the entire direct module is out of service for the moment - Twitter changed their Direct Message API back in 2018, and egg-mode never caught up. The new API is better in at least one specific regard - sent and received are no longer separate endpoints, so most of the work that the ConversationsTimeline is doing isn't necessary any more. (It's still worth having something like that, just to separate out individual threads from the stream, but at least it doesn't have to juggle two Futures to make it work.) However, since the change is more substantial than "the URL has changed", it'll probably take some extra work to make it happen.