Hi,
I have just started trying to get a simple Status update script (see below) working on our site. All it returns is ‘Could not authenticate you’
Can anyone please help steer me in the right direction?
strUrl = "https://api.twitter.com/1/statuses/update.json?include_entities=true HTTP/1.1"
Set xmlHttp = Server.Createobject("MSXML2.ServerXMLHTTP")
xmlHttp.Open "POST", strUrl, False
xmlHttp.setRequestHeader "Connection", "close"
xmlHttp.setRequestHeader "User-Agent", "OAuth gem v0.4.4"
xmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlHttp.setRequestHeader "Authorization", "Oauth oauth_consumer_key=oauth_consumer_key"
xmlHttp.setRequestHeader "Authorization", "oauth_nonce=oauth_nonce"
xmlHttp.setRequestHeader "Authorization", "oauth_signature=oauth_signature"
xmlHttp.setRequestHeader "Authorization", "oauth_signature_method=HMAC-SHA1"
xmlHttp.setRequestHeader "Authorization", "oauth_timestamp=" & timestamp()
xmlHttp.setRequestHeader "Authorization", "oauth_token=oauth_token"
xmlHttp.setRequestHeader "Authorization", "oauth_version=1.0"
xmlHttp.setRequestHeader "Host", "api.twitter.com"
xmlHttp.Send "status=Hello%20Ladies%20%2b%20Gentlemen%2c%20a%20signed%20OAuth%20request%21"
postTransaction = xmlHttp.responseText
xmlHttp.abort()
set xmlHttp = Nothing
Thanks
Matt
Oauth Virgin (as you can probably tell)