How to authenticate with reddit using RCurl How to authenticate with reddit using RCurl curl curl

How to authenticate with reddit using RCurl


Try this httr code:

library(httr)POST("https://ssl.reddit.com/api/v1/access_token",  body = list(    grant_type = "password",    username = "MyUserName",    password = "MyPassword"  ),  encode = "form",  authenticate("p-jcoLKBynTLew", "gko_LXELoV07ZBNUXrvWZfzE3aI"))