Ponytech / appstoreconnectapi

Python wrapper around Apple App Store Api
https://ponytech.net/projects/app-store-connect
MIT License
160 stars 74 forks source link

Proxy support #40

Closed TE-YutakaTentaku closed 3 years ago

TE-YutakaTentaku commented 3 years ago

Do you have a plan to support proxy setting so that the requests can reach via proxy server? I didn't try that yet by using your tool but I noticed that I needed to set the proxy to request in my environment as below.

response = requests.get(url, headers=hed, proxies=proxyDict)

If you have this option, would be great. Thanks.

ppawlak commented 3 years ago

Hi @TE-YutakaTentaku

This is indeed a legitimate request. I'll add this as soon as possible.

ppawlak commented 3 years ago

I'll add this as soon as possible.

Sooner is better than later 😄 I have made a commit that allows HTTP and HTTPS proxy support (no SOCKS proxy here)

You can try with:

from appstoreconnect import Api, UserRole
api = Api(key_id, path_to_key_file, issuer_id, proxy='http://1.2.3.4:3128')
print([app.name for app in api.list_apps()])

Let me know if it works for you and I'll publish a new version on PyPI,

TE-YutakaTentaku commented 2 years ago

@ppawlak Super! thanks. will check.