Ponytech / appstoreconnectapi

Python wrapper around Apple App Store Api

Home Page:https://ponytech.net/projects/app-store-connect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proxy support

TE-YutakaTentaku opened this issue · comments

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.

Hi @TE-YutakaTentaku

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

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,

@ppawlak Super! thanks. will check.