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

add proxy feature #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add proxy feature #33

wants to merge 1 commit into from

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.

None yet

2 participants