Closed jantje closed 6 years ago
I noticed that my creators refresh token is not updated so it looks as if I do not get to the server.
I see following info in the log
Server returned HTTP response code: 401 for URL: https://api.patreon.com/oauth2/token
It is this line that throws the exception.
final BufferedReader stream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
It does so with the original getTokens and with my variant.
This use case is supported. Query your patrons & compare ids
hey @jantje ! sorry this slipped through the cracks. It sounds like you're not properly keeping your refresh token up to date, so you're getting an HTTP 401
. Please make sure to handle 401
s by calling refreshToken(myRefreshToken)
. I'm going to close the issue for now, but please do open a new one if you cannot get this working
Hi I would love to implement following use case 1)Users starts java program (eclipse to be precise) 2)Based on information stored in eclipse the java program checks whether the user is a patron off me (with the correct rewards) 3)If so I can disable/enable features. I can easily handle step 1 and 3 but I seem to be unable to get my head around step 2. There is only one constructor for oAuth which takes a client ID and client secret. When I take my client ID and my client secret I get back a oAuth but when I call
JSONObject tokens = oauthClient.getTokens(my_refresh_token, "");
I always get a null backI tried adding a getTokens variant
but I still get null