$.ajax({
type: 'POST',
url: "https://api.twitter.com/oauth/request_token",
beforeSend: function (xhr){
xhr.setRequestHeader('Authorization', 'OAuth oauth_nonce="value", oauth_callback="http%3A%2F%2Fmyapp.com%3A3005%2Ftwitter%2Fprocess_callback", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1300228849", oauth_consumer_key="key", oauth_signature="signature", oauth_version="1.0"');
},
data: {include_entities:true},
success: function(data){alert(data)},
dataType: "json",
error:function(edata){
alert(edata);
}
});
I’m trying to get an access token with this method. I get the 403 forbidden status. Am I doing anything wrong?