Hi Rhys,
- you're right status should be at the end of the base string. Even
though it's sent as a POST, it still has to go in alpha order in the
base string.
- Also be careful of the leading %3F you've got after the update.xml -
should just be (method)&(baseURL+service)&(list of params separated by
%26)
- Once you've signed with this string, your message will look like:
(pseudo code not actual message)
POST HTTP 1.1 /statuses/update.xml
Host:
api.twitter.com:443
Authorization: (list of params as normal, including oauth_signature
but NOT including status)
Content-type: application/x-www-form-urlencoded
Body:
status=test
Also note that if you have non-alpha characters in the status string
(eg. space, etc) you must URL encode them BEFORE compiling the base
signature string, and also ensure they remain URL encoded in the POST
body.
Hope this helps
Stephen
On Jun 8, 7:36 am, rhysmeister <
therhysmeis...@hotmail.com> wrote:
> Hi, thanks to you both. I've removed the source parameter.
>
> There is something wrong with my signature base indeed. Here's what I
> am sending for a status update...
>
> POST&http%3A%2F%
2Fapi.twitter.com%2F1%2Fstatuses%2Fupdate.xml&%3Fstatus
> %3Dtest%26oauth_consumer_key%3Dxxxxxxxxxxxxxxxxxxxxxx%26oauth_nonce
> %3DE9X6lVKiDkQ1n%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
> %3D1275946125%26oauth_token%3Dxxxxxxxxxxxxxxxxxxxxxxxxxx
> %26oauth_version%3D1.0
>
> As far as I can gather from this linkhttp://
dev.twitter.com/pages/auth#auth-request,