I am trying to send a tweet directly to the Twitter API from my microcontroller. In the documentation for authorizing a request, they give the following example:
POST /1/statuses/update.json?include_entities=true HTTP/1.1
Accept: /
Connection: close
User-Agent: OAuth gem v0.4.4
Content-Type: application/x-www-form-urlencoded
Authorization:
OAuth oauth_consumer_key=“xvz1evFS4wEEPTGEFPHBog”,
oauth_nonce=“kYjzVBB8Y0ZFabxSWbWovY3uYSQ2pTgmZeNu2VS4cg”,
oauth_signature=“tnnArxj06cWHq44gCs1OSKk%2FjLY%3D”,
oauth_signature_method=“HMAC-SHA1”,
oauth_timestamp=“1318622958”,
oauth_token=“370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb”,
oauth_version="1.0"
Content-Length: 76
Host: api.twitter.com
status=Hello%20Ladies%20%2b%20Gentlemen%2c%20a%20signed%20OAuth%20request%21
If i send this information directly to the API (assuming that all the parameters have been changed in the above example use my values and they are correctly calculated), it should post the tweet, right?
For some reason I cannot get this process to work. (Is the API only on https? or is it http also?)