I’m trying to get a bearer token, but am getting a 500 error. Below is the request; can you see what I’m doing wrong?
_request => bless({
_content => “grant_type=client_credentials”,
_headers => bless({
“authorization” => “Basic [credential created per https://dev.twitter.com/docs/auth/application-only-auth]”,
“content-type” => “application/x-www-form-urlencoded;charset=UTF-8”,
“user-agent” => “bfi”,
}, “HTTP::Headers”),
_method => “POST”,
_uri => bless(do{(my $o = “https://api.twitter.com/oauth2/token”)}, “URI::https”),
_uri_canonical => ‘fix’,
}, “HTTP::Request”),