Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 error #36

Open
DevJoey opened this issue Apr 17, 2020 · 4 comments
Open

401 error #36

DevJoey opened this issue Apr 17, 2020 · 4 comments

Comments

@DevJoey
Copy link

DevJoey commented Apr 17, 2020

I get this exception
org.jsoup.HttpStatusException: HTTP error fetching URL. Status=401, URL=https://www.patreon.com/api/oauth2/token
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:682)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:629)
at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:261)
at org.jsoup.helper.HttpConnection.post(HttpConnection.java:256)
at com.patreon.PatreonOAuth.getTokens(PatreonOAuth.java:57)
at net.proxysocke.gittest.LoadUp.main(LoadUp.java:34)

my code
public static String clientid = "sec";
public static String clientsecret = "sec";
public static String redirectUri = "my url";

public static String code = "code";

public static void main(String[] args) {
	
	try {
		PatreonOAuth authClient = new PatreonOAuth(clientid, clientsecret, redirectUri);
		PatreonOAuth.TokensResponse tok = authClient.getTokens(code);
		
		
	} catch (Exception e) {
		e.printStackTrace();
	}

}
}

What i make wrong and what is code how i can get a "code" please provide a better documentation. the api is useless

@oleggtro
Copy link

I have the same issue... Can't anyone help us?

@jman13378
Copy link

bump and i have the same issue

@oleggtro
Copy link

oleggtro commented Sep 9, 2022

I moved on, but I guess they changed the API and didn't update this wrapper. The last commit on master was in 2018 after all

@oleggtro
Copy link

oleggtro commented Sep 9, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants