[twitter-dev] API: get current status won't show the latest update

2011-06-09 Thread Gang T
Hi there,

I am trying to get the latest status update through API, and figured
out that the API won't return the latest update until couple minutes
later.

Here are the steps I tried:

1. get input from user
2. get the latest status update through rest API (I tried account/
verify_credentials, users/show/{user_id}, and statuses/user_timeline)
3. If the current status message is different from user's input,
update the status in twitter (to eliminate 403 error).

The problem is if we run those steps twice without delay, the step 2
won't give the latest status update from the first run. The latest
update can be returned after couple minutes. the interesting thing is
the update can be shown in the twitter web page.

Would you please give some suggestion on how to get the latest status
update without delay?
Your help are appreciated.

Best,
Gang

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] exception 403 on status update

2011-06-08 Thread Gang T
Hi there,

Could you please tell us in which cases the exception 403 will be
thrown on status update?

Your help are appreciated.

Best,
Gang

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk