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

Include Relationship Data #24

Open
lxjhk opened this issue Oct 27, 2020 · 2 comments
Open

Include Relationship Data #24

lxjhk opened this issue Oct 27, 2020 · 2 comments
Labels
API v1.2 Support of the App Store Connect API v1.2

Comments

@lxjhk
Copy link

lxjhk commented Oct 27, 2020

How do I add the include header in my request so that the response from Apple will have the relationship data?

For example, I am getting all the builds of a particular app by using the following:
https://developer.apple.com/documentation/appstoreconnectapi/list_builds#url

for b in api.list_builds(filters={"app":app_id}, sort="-uploadedDate"):

I'd like to have the appStoreVersion relationship data included in the response so that I can access it by calling b. appStoreVersion.

@ppawlak
Copy link
Contributor

ppawlak commented Nov 1, 2020

Thanks for pointing this out @lxjhk

The include parameter is not yet supported. I add this to the TODO list.

In the meantime you should be able to fetch the build's appStoreVersion with b.appStoreVersion() but I just tried and it is also failing. I'll fix this as soon as possible and let you know.

@ppawlak
Copy link
Contributor

ppawlak commented Dec 21, 2020

I just created a branch to start support for App Store Connect API 1.2 : https://github.com/Ponytech/appstoreconnectapi/tree/api-1.2

First commit is adding support for appStoreVersion

You can checkout this branch and do something like this:

app = api.list_apps(filters={'sku': 'APPSKU')[0]
build = list(app.builds())[0]
version = build.appStoreVersion()
print(version.versionString)

@lxjhk Can you confirm it works for you?

@ppawlak ppawlak added the API v1.2 Support of the App Store Connect API v1.2 label Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API v1.2 Support of the App Store Connect API v1.2
Projects
None yet
Development

No branches or pull requests

2 participants