Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add reddit example #363
library(httr) library(purrr) app <- oauth_app("reddit", "bvmjj2EOBvOknQ", "n8ueSvTNdlE0BDDJpLljvmgUGUw") reddit <- oauth_endpoint( authorize = "https://www.reddit.com/api/v1/authorize", access = "https://www.reddit.com/api/v1/access_token" ) token <- oauth2.0_token(reddit, app, scope = "read modposts", use_basic_auth = TRUE)
This is currently giving
Error in init_oauth2.0(self$endpoint, self$app, scope = self$params$scope, : Too Many Requests (RFC 6585) (HTTP 429). Failed to get an access token.
I think it's because the