Update znma version

This has never been required before...? (I think) I was asked to check analytics settings after updating so maybe that's why.
This commit is contained in:
Samuel Elliott
2022-04-06 20:58:35 +01:00
parent b677b22809
commit ec996ef461

View File

@@ -9,6 +9,9 @@ const debug = createDebug('api:moon');
const MOON_URL = 'https://api-lp1.pctl.srv.nintendo.net/moon';
export const ZNMA_CLIENT_ID = '54789befb391a838';
const ZNMA_VERSION = '1.17.0';
const ZNMA_BUILD = '261';
export default class MoonApi {
constructor(
public token: string,
@@ -29,9 +32,10 @@ export default class MoonApi {
'X-Moon-TimeZone': 'Europe/London',
'X-Moon-Os-Language': 'en-GB',
'X-Moon-App-Language': 'en-GB',
'X-Moon-App-Display-Version': '1.16.0',
'X-Moon-App-Internal-Version': '247',
'User-Agent': 'moon_ANDROID/1.16.0 (com.nintendo.znma; build:247; ANDROID 26)',
'X-Moon-App-Display-Version': ZNMA_VERSION,
'X-Moon-App-Internal-Version': ZNMA_BUILD,
'User-Agent': 'moon_ANDROID/' + ZNMA_VERSION + ' (com.nintendo.znma; build:' + ZNMA_BUILD +
'; ANDROID 26)',
}, headers),
body: body,
});