2009/7/3 goodtest <goodtest...@gmail.com>:
>
> I thought everything was working until i just sent a tweet with 4
> words, but only the first word is being posted for some reason. Please
> help .
> I think i have done all the url encoding stuffs, but somehow twitter
> is only recognizing first word. What am i missing?
>
>
> Url:
> http://twitter.com/statuses/update.json?status=one two three
> Post headers:
> oauth_consumer_key=Xz2BKOKObTzpLrMXxJo2ww&oauth_nonce=Pz9MVSTc2EX&oauth_signature_method=HMAC-
> SHA1&oauth_timestamp=1246644337&oauth_token=52243094-
> N6lnC60D5ZY4rl1OVaemffKaqGas5aVJqAj220ykt&oauth_version=1.0&oauth_token=52243094-
> N6lnC60D5ZY4rl1OVaemffKaqGas5aVJqAj220ykt&oauth_signature=i9NB
> +T6OQRzeQkikXMYmhwONRTM=
>
>
> encoded form:
>
> http%3A%2F%2Ftwitter.com%2Fstatuses%2Fupdate.json%3Fstatus%3Done%20two
> %20three
>
> oauth_consumer_key%3DXz2BKOKObTzpLrMXxJo2ww%26oauth_nonce%3DJKBGe9GKQCM
> %26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
> %3D1246644748%26oauth_token%3D52243094-
> N6lnC60D5ZY4rl1OVaemffKaqGas5aVJqAj220ykt%26oauth_version
> %3D1.0%26oauth_token%3D52243094-
> N6lnC60D5ZY4rl1OVaemffKaqGas5aVJqAj220ykt%26oauth_signature
> %3D7RyC21EJdprquTFdbQV2lq0IIqY%3D
>
>
> In the response.. it says:
> "text":"one"
>
> {"text":"one","favorited":false,"user":
> {"profile_link_color":"088253","description":null,"profile_background_tile"
> :false,"utc_offset":-28800,"verified":false,"profile_background_color":"EDECE9","followers_count":
> 10
> ,"profile_image_url":"http:\/\/static.twitter.com\/images\/
> default_profile_normal.png","friends_count"
> :
> 15,"profile_sidebar_fill_color":"E3E2DE","url":null,"screen_name":"rajaraodv","name":"rajaraodv","created_at"
> :"Sun Jun 22 16:10:53 +0000
> 2008","protected":false,"profile_sidebar_border_color":"D3D2CF","time_zone"
> :"Pacific Time (US & Canada)","following":null,"statuses_count":
> 23,"profile_text_color":"634047","location"
> :null,"id":
> 15198474,"notifications":null,"profile_background_image_url":"http:\/\/
> static.twitter.com
> \/images\/themes\/theme3\/bg.gif","favourites_count":
> 0},"in_reply_to_screen_name":null,"created_at":"Fri
>  Jul 03 18:05:43 +0000
> 2009","truncated":false,"in_reply_to_status_id":null,"id":
> 2457422831,"in_reply_to_user_id"
> :null,"source":"<a href=\"http:\/\/apiwiki.twitter.com\/\">API<\/a>"}
>
>
> please help, what am i missing?

First of all, "one two three" is 3 words so you'll never get Twitter
to recognise it as 4.

Secondly you need to url encode the text you're passing in the status
parameter, i.e.

    http://twitter.com/statuses/update.json?status=one%20two%20three

-Stuart

-- 
http://stut.net/projects/twitter

Reply via email to