GET activities not working as expected and http 400 errors on android

210 views
Skip to first unread message

Dave Pier

unread,
Jul 15, 2015, 3:58:20 PM7/15/15
to strav...@googlegroups.com
I have written an android app to go fetch activities from a certain date but I am having trouble with the response.

If I use the request for a list of activities the "before" parameter does not seem to do anything. For example 

and 

both give a HTTP 200 response but the list of activities is the same. So it looks as though the datetime is being ignored.

If I change the parameter to "after" it does not matter what datetime I use I always get a http 400 error with the message - 

{"message":"Bad Request","errors":[{"resource":"Application","field":"after","code":"future"}]}


Any ideas on what I am doing wrong?

Paul Mach

unread,
Jul 15, 2015, 4:25:01 PM7/15/15
to Dave Pier, strava-api
Those look to be milliseconds.  The parameter should be seconds.  so /1000

Dr. Paul Mach
STRAVA

--
You received this message because you are subscribed to the Google Groups "Strava API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strava-api+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave Pier

unread,
Jul 15, 2015, 4:31:38 PM7/15/15
to Paul Mach, strava-api
Oh yes, oops. Guess I got carried away with my android date formats.

Thanks a bunch for solving this
Dave
Reply all
Reply to author
Forward
0 new messages