Web service that can retweet by user authorization with Twitter Oauth v1.
main.go
file.
var (
flags = flag.NewFlagSet("user-auth", flag.ExitOnError)
consumerKey = flags.String("consumer-key", "", "Twitter Consumer Key")
consumerSecret = flags.String("consumer-secret", "", "Twitter Consumer Secret")
accessToken = flags.String("access-token", "", "Twitter Access Token")
accessSecret = flags.String("access-secret", "", "Twitter Access Secret")
)
go build .
./afet-yardim-bot
Send Request
http://localhost:8080/retweet?id=1622383183646937088