Search code examples
javaapioauthscribewithings

how to authentificate through withings api using sribe in java


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.


Solution

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

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