Ponytech / appstoreconnectapi

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

Request for getting user.visibleApps #31

Closed yangcaixing closed 3 years ago

yangcaixing commented 3 years ago

Hi Patrice, As request, I open this issue for getting user's visible apps, thanks for your great help.

ppawlak commented 3 years ago

I have just pushed a commit (https://github.com/Ponytech/appstoreconnectapi/commit/0c621cc82666ad28b785c36a957707279a3fc159) on master that should let you do this:

users = api.list_users(filters={'username': 'john@example.org'})
user = users[0]  # note that you can now access an object using indexing
for app in user.visibleApps():
    print(app.name)

@yangcaixing can you confirm this works for you?

yangcaixing commented 3 years ago

Hi Patrice, it works, thanks.

ppawlak commented 3 years ago

it works, thanks.

Great!