Open sabyasachi07 opened 3 years ago
func run() (err error) { credentials := reddit.Credentials{ID: "", Secret: "", Username: "", Password: ""} client, err := reddit.NewClient(credentials)
if err != nil { return } vote, err := client.Post.Upvote(context.Background(), "t3_ig9u4z") if err != nil { return err } fmt.println(vote)
return }
func run() (err error) { credentials := reddit.Credentials{ID: "", Secret: "", Username: "", Password: ""} client, err := reddit.NewClient(credentials)
return }