httr request with multiple headers in r
The request would be something like this:
token_request <- POST(url = 'https://api.twitter.com/oauth2/token' , body = 'grant_type=client_credentials' , add_headers(.headers = c('Authorization'= 'xxxxxxxxxxxxxxxxxx' , 'Content-Type' = 'application/x-www-form-urlencoded')))token_body <- content(token_request, as = 'parsed')