Integer clientID = {client-id-from-strava};
String clientSecret = "{client-secret-from-strava}";
String accessToken = "{my-access-token-also-from-same-registration-process}";
Token token= null;
try {
token = service.tokenExchange(clientID, clientSecret, accessToken);
......
Buy I am getting the following error.
Any thoughts please ?
javastrava.api.v3.service.exception.BadRequestException: 400 Bad Request : StravaResponse [message=Bad Request, errors=[StravaAPIError [resource=RequestToken, field=code, code=invalid]]] at javastrava.api.v3.rest.util.RetrofitErrorHandler.handleError(RetrofitErrorHandler.java:113) at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:242) at com.sun.proxy.$Proxy18.tokenExchange(Unknown Source) at javastrava.api.v3.auth.impl.retrofit.AuthorisationServiceImpl.tokenExchange(AuthorisationServiceImpl.java:39)
--
You received this message because you are subscribed to a topic in the Google Groups "Strava API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/strava-api/dp5XTsbvQXA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to strava-api+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for your answer Bill. So, something like this?