You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried, the bellow code i got 403 error, Can any one tell me why this is happening and how can I fix this issue?
package main
import (
"context"
"fmt"
"github.com/vartanbeno/go-reddit/v2/reddit"
)
func main() {
ctx := context.Background()
client, err := reddit.NewReadonlyClient()
if err != nil {
fmt.Println("Error from reddit.NewReadonlyClient()", err)
}
listOpts := &reddit.ListOptions{
Limit: 10, // always 100, so we can filter out without extra logic; if this is ever > 100, use resp.After
}
data, res, err := client.Subreddit.HotPosts(ctx, "AnimalsBeingBros", listOpts)
fmt.Println(data)
fmt.Println(res)
fmt.Println(err)
}
The text was updated successfully, but these errors were encountered:
When I tried, the bellow code i got 403 error, Can any one tell me why this is happening and how can I fix this issue?
The text was updated successfully, but these errors were encountered: