Skip to content

jiaohu/twitter-api-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X Api Demo

This is a demo for user to request with twitter api, use the sdk twitter-v2

Pre-Work

here, wo should register to be a developer for X(twitter), then you should set the user authentication image

image

Attention that, the app info for Callback URI / Redirect URL must set and copy it to the main function in src/main.rs

Run the work

env

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

command

cargo run

Releases

No releases published

Packages

No packages published

Languages