Hi Sushil,

Twitter enforces that timestamps be within a reasonable amount of time from
the present, so this is expected behavior.

One way that you can get plan ahead for this is by reading the "Date" HTTP
header that is sent in the response to every request -- once you parse that
date, you can determine the delta between what our server clock is running
at and what time your device thinks it is and then adjust your timestamp
calculations accordingly.

Another strategy that some developers take is to issue an unauthenticated
HTTP HEAD request to https://api.twitter.com/1/help/test.json when the app
starts up, which will also yield the Date header that you can adjust to.

@episod <http://twitter.com/intent/user?screen_name=episod> - Taylor
Singletary


On Thu, Jun 23, 2011 at 11:36 PM, Sushil <sushil.sys...@gmail.com> wrote:

> Hi All,
>
> I have a Android application for Twitter. I'm using Twitter4j library
> to do xAuth authentication.
>
> I'm facing a problem during login if the device date set as any past
> date. Like if today is 24th June and device date set as 23rd June and
> when I'm trying to login it gives me following error.
>
> SNS exception :: The screen name / password combination seems to be
> invalid.Relevant discussions can be on the Internet at:
> http://www.google.co.jp/search?q=e07c50ee or
> http://www.google.co.jp/search?q=0000e7bd
> TwitterException{exceptionCode=[e07c50ee-0000e7bd 1ac06e3f-695622d6],
> statusCode=503, retryAfter=0, rateLimitStatus=null, version=2.1.12}
>
> But if the device date is current date then the authentication works
> just fine.
>
> I want to know if this is expected behavior ?
>
>
> Thanks,
> Sushil
>
> --
> 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 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

Reply via email to