Skip to content

Commit 05d59c1

Browse files
authored
Update privacy and version history function url (#225)
* Update privacy and version history function url * fix spacing
1 parent 11a0679 commit 05d59c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/privacy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function privacy (opts) {
2121
const match = regExp.exec(html);
2222
const token = match[1];
2323

24-
const url = `https://amp-api.apps.apple.com/v1/catalog/${opts.country}/apps/${opts.id}?platform=web&fields=privacyDetails`;
24+
const url = `https://amp-api-edge.apps.apple.com/v1/catalog/${opts.country}/apps/${opts.id}?platform=web&fields=privacyDetails`;
2525
return common.request(url, {
2626
'Origin': 'https://apps.apple.com',
2727
'Authorization': `Bearer ${token}`

lib/version-history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function versionHistory (opts) {
2121
const match = regExp.exec(html);
2222
const token = match[1];
2323

24-
const url = `https://amp-api.apps.apple.com/v1/catalog/${opts.country}/apps/${opts.id}?platform=web&extend=versionHistory&additionalPlatforms=appletv,ipad,iphone,mac,realityDevice`;
24+
const url = `https://amp-api-edge.apps.apple.com/v1/catalog/${opts.country}/apps/${opts.id}?platform=web&extend=versionHistory&additionalPlatforms=appletv,ipad,iphone,mac,realityDevice`;
2525
return common.request(url, {
2626
'Origin': 'https://apps.apple.com',
2727
'Authorization': `Bearer ${token}`

0 commit comments

Comments
 (0)