Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

App Store Connect refuses requests built with searchParams #6

Open
Reiszecke opened this issue Apr 13, 2021 · 0 comments
Open

App Store Connect refuses requests built with searchParams #6

Reiszecke opened this issue Apr 13, 2021 · 0 comments

Comments

@Reiszecke
Copy link

I seem to be the only one with that issue but constructing the URL with the searchParams left me with App Store Connect telling me it's a bad request.

My ugly fix is to template the URL like that https://api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=${frequency}&filter[reportDate]=${filterReportDate}&filter[reportSubType]=SUMMARY&filter[reportType]=SALES&filter[vendorNumber]=${opts.vendorId}&filter[version]=1_0 without the need for search params.

Since there are no other issues like this I suppose I'm at fault somewhere but if it helps feel free to check out https://github.com/Reiszecke/node-appstore-connect/blob/master/src/index.ts#L262

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant