This is a demo for user to request with twitter api, use the sdk twitter-v2
here, wo should register to be a developer for X(twitter), then you should set the user authentication

Attention that, the app info for Callback URI / Redirect URL
must set and copy it to the main
function in src/main.rs
first you should add the .env
file in the root path. The detail shown in the file .env.example
CLIENT_ID= # twitter client id
CLIENT_SECRET= # client secret
RUST_LOG= # debug, info, .e.g
cargo run