egg-mode-rs / egg-mode

a twitter api crate for rust
https://crates.io/crates/egg-mode
Mozilla Public License 2.0
372 stars 65 forks source link

Conversations example doesn't work #67

Closed adwhit closed 4 years ago

adwhit commented 5 years ago
➜  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?

QuietMisdreavus commented 4 years ago

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.