Skip to content

Conversation

@kimsung604
Copy link

No description provided.

@phildini
Copy link
Contributor

Hi! Could we get a bit more on what this PR is trying to solve? Thanks.

@kimsung604
Copy link
Author

Sometimes, due to security policy issues, Web Application Server cannot directly access the external network, so you must only access the external network through the Proxy Server.
So there needs to be a way to call the patreon api through a proxy server.
like this

Proxy proxy = new Proxy(Type.HTTP, new InetSocketAddress("proxy.server1.com", 19002));

// auth
PatreonOAuth patreonOAuth = new PatreonOAuth(clientId, clientSecret,redirectUri, proxy);
patreonOAuth.getToken(code);

// api
PatreonAPI api = new PatreonAPI(accessToken, proxy);
api.fetchCampaigns();
...

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

Successfully merging this pull request may close these issues.

2 participants