how to authentificate through withings api using sribe in java

540 Views Asked by At

I use scribe librabry for java , that's a library that simplificate oAuth procedure.

I try to write a code for authenticate me in the withings api with java with scribe but i have always the same problem : "Invalide Token". I don't know what to write in the verifier param in scribe ....

Thanks for your response.

Bye.

1

There are 1 best solutions below

2
gmetax On BEST ANSWER

I had fixed this problem with using an empty Verifier, something like this:

Token accessToken = service.getAccessToken(requestToken,new Verifier(""));