Commit Graph

171 Commits

Author SHA1 Message Date
Samuel Elliott
e5a955e666
Fix sending request_id when using nxapi's f-generation API 2022-08-24 19:21:27 +01:00
Samuel Elliott
a6b8dc33e8
Update imink API 2022-08-24 17:31:34 +01:00
Samuel Elliott
428f7131a1
Fix f parameter generation
This fixes `f` parameter generation with nxapi's custom server. This will also work with imink/flapg *if the system time exactly matches the imink/flapg Android device's time*. This commit also makes nxapi's API compatible with imink's API and adds some information about the Android device and NSO app to response headers.
2022-08-23 16:47:15 +01:00
Samuel Elliott
624d60dc1b
Always check response status codes 2022-08-22 11:36:37 +01:00
Samuel Elliott
67819b4af5
Fix some issues with X Rank season calculation and add season indexes 2022-08-21 20:28:22 +01:00
Samuel Elliott
7423da8d98
Update NookLink 2022-08-16 18:41:45 +01:00
Samuel Elliott
f628d371e1
Add NookLink constructor helper functions 2022-08-16 18:16:30 +01:00
Samuel Elliott
84f7d42d79
Add missing fetch timeouts to coral requests
Fixes the issue where these requests may never complete.
2022-08-16 17:52:56 +01:00
Samuel Elliott
77f07eb1b3
Always check response status codes 2022-08-13 01:31:16 +01:00
Samuel Elliott
5f0fd26ef6
Handle OAuth errors properly 2022-08-13 00:38:45 +01:00
Samuel Elliott
ca36935f78
Fix friend code user type 2022-08-13 00:15:01 +01:00
Samuel Elliott
fc2dec15c0
Add SplatNet 2 constructor helper functions and always send player ID 2022-07-29 18:46:22 +01:00
Samuel Elliott
2d52f17022
Update config URL and use config data 2022-07-29 17:59:17 +01:00
Samuel Elliott
e9218b9004
Add friend code URL to API proxy 2022-07-28 14:04:29 +01:00
Samuel Elliott
0cc39aad13
Add friend code lookup to API proxy 2022-07-28 13:57:39 +01:00
Samuel Elliott
e12bb364a7
Prevent attempting to authenticate more than four times per hour
This only affects scripts - running this nxapi command in a terminal and the Electron app will ignore this limit.

https://github.com/samuelthomas2774/nxapi/issues/9
2022-07-27 15:48:19 +01:00
Samuel Elliott
d3e5a88625
Fix ZncProxyApi types 2022-07-27 14:52:00 +01:00
Samuel Elliott
38c282bf6c
Update SplatNet 2 types 2022-07-27 14:31:54 +01:00
Samuel Elliott
85a9193328
Update coral
https://github.com/samuelthomas2774/nxapi/issues/14
2022-07-27 14:16:43 +01:00
Samuel Elliott
fe725f931a
Format response data in error messages 2022-07-23 18:07:25 +01:00
Samuel Elliott
a32c3dec72
Update API types 2022-07-23 17:45:20 +01:00
Samuel Elliott
dddb15aceb
Use package.json exports field 2022-07-23 17:42:41 +01:00
Samuel Elliott
21f5f095a0
Add helper function for setting user agent 2022-07-01 21:22:40 +01:00
Samuel Elliott
5e25570d2d
Update SplatNet 2 types 2022-06-28 19:24:24 +01:00
Samuel Elliott
a6a69b1799
Rename most instances of znc to coral 2022-06-28 19:22:01 +01:00
Samuel Elliott
1ddbe10f25
Add a command and functions to get SplatNet 2 X Rank seasons 2022-06-26 18:00:47 +01:00
Samuel Elliott
39bfc8ab39
Add a command to get a SplatNet 2 iksm_session cookie 2022-06-26 16:14:02 +01:00
Samuel Elliott
1fc6cce5a6
Add support for all Discord presence options for the app 2022-06-18 12:46:03 +01:00
Samuel Elliott
abb440343a
Add x-appcolorscheme header for web service requests 2022-06-12 22:08:14 +01:00
Samuel Elliott
4bf9908362
Fetch timeout 2022-06-12 15:36:00 +01:00
Samuel Elliott
60c0e592db
Electron app 2022-06-05 15:04:36 +01:00
Samuel Elliott
27e8fa5401
Fix automatically renewing token never completes 2022-05-30 23:59:03 +01:00
Samuel Elliott
9f63fc8359
Handle simultaneous znc proxy requests properly 2022-05-30 13:16:06 +01:00
Samuel Elliott
b8f9c2c110
Automatically renew token when znc responds with a token expired error 2022-05-30 12:32:38 +01:00
Samuel Elliott
18761bbb31
Update dependencies 2022-05-29 19:16:54 +01:00
Samuel Elliott
5328ada1e7
Show share menu for web services 2022-05-29 18:02:07 +01:00
Samuel Elliott
7b13d9e9f9
Update znca version to 2.1.1 2022-05-26 12:42:57 +01:00
Samuel Elliott
442b53a062
Add an option to use the imink API to generate f parameters
https://github.com/JoneWang/imink/wiki/imink-API-Documentation
https://github.com/JoneWang
2022-05-26 12:42:31 +01:00
Samuel Elliott
967a063220
Move utility functions
This avoids importing most dependencies when not used.
2022-05-21 23:52:36 +01:00
Samuel Elliott
5f6004bd57
Move authentication functions
app no longer imports from cli
2022-05-21 23:47:41 +01:00
Samuel Elliott
b531fcced4
Move monitoring classes, use nxapi debug namespace for non-app/cli modules 2022-05-14 19:06:43 +01:00
Samuel Elliott
02362c1de4
Update znca version to 2.1.0 2022-05-12 21:32:53 +01:00
Samuel Elliott
3e1ba3a863
Fix Electron app bundle 2022-05-09 21:48:29 +01:00
Samuel Elliott
784e882dd4
Move getToken/getMoonToken and add cli-table types 2022-05-09 21:28:31 +01:00
Samuel Elliott
c3d138a93a
Support user and friend URLs for --presence-url in nxapi util discord-activity 2022-05-01 23:03:34 +01:00
Samuel Elliott
ec700faa9b
Add MoonApi.getParentalControlSettingState return type 2022-04-30 11:11:37 +01:00
Samuel Elliott
81cec767df
Export NookLink client, remove duplicate ErrorResponse class 2022-04-26 16:50:19 +01:00
Samuel Elliott
fb1582dea9
Update NookLink types 2022-04-21 18:06:09 +01:00
Samuel Elliott
b74994327c
Add NookLink commands 2022-04-18 14:45:24 +01:00
Samuel Elliott
819bd02313
Update NookLink types 2022-04-18 13:47:01 +01:00
Samuel Elliott
3502b7ab87
Update NookLink types 2022-04-16 16:38:45 +01:00
Samuel Elliott
4d593deb7f
Use /v3/Account/GetToken to renew the app token 2022-04-08 23:53:04 +01:00
Samuel Elliott
53a15bbb99
Use /v3/Account/GetToken to renew the app token 2022-04-08 22:13:43 +01:00
Samuel Elliott
77a32e1b5e
Add an option to show event data 2022-04-08 19:57:45 +01:00
Samuel Elliott
a53eccd91e
Update znc types, add other endpoints and use /v3/Account/GetToken to renew the app token 2022-04-06 23:17:54 +01:00
Samuel Elliott
ec996ef461
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.
2022-04-06 20:58:35 +01:00
Samuel Elliott
3c66bbd95d
Allow dependents to set the user agent for s2s, flapg and nxapi APIs 2022-04-05 20:42:38 +01:00
Samuel Elliott
2bc251a58b
Add Nintendo Account authentication and web services in Electron 2022-04-05 20:37:33 +01:00
Samuel Elliott
570e3d6b29
Set environment variables from a file and add Electron app base 2022-03-29 22:57:19 +01:00
Samuel Elliott
e801487010
Validate session tokens and znca id_tokens 2022-03-26 21:12:46 +00:00
Samuel Elliott
f6fe7b57ba
Add NookLink API types 2022-03-25 19:20:36 +00:00
Samuel Elliott
a737d51839
Use the previous updated timestamp from SplatNet 2 to check for updates
This prevents redownloading (or missing data) if the local system time is slightly different to SplatNet 2's time.
2022-03-25 19:05:00 +00:00
Samuel Elliott
28b3468835
Save SplatNet 2 language, region and user ID with iksm_session 2022-03-25 18:23:44 +00:00
Samuel Elliott
8b28ffd4ca
Add monitoring of SplatNet 2 data 2022-03-22 22:13:21 +00:00
Samuel Elliott
4736fe55d4
Only request a new iksm_session cookie if the previous cookie hasn't been used recently 2022-03-22 19:55:52 +00:00
Samuel Elliott
86fb372722
Add commands to download SplatNet 2 data 2022-03-21 20:38:52 +00:00
Samuel Elliott
2005f34780
Add server to generate f parameters for NSO app authentication 2022-03-17 15:18:35 +00:00
Samuel Elliott
3919ceeb21
Add parental controls 2022-03-16 21:03:31 +00:00
Samuel Elliott
5aba992899
Add a command to get a session token 2022-03-16 20:14:33 +00:00
Samuel Elliott
c0c138ef49
Add HTTP server 2022-03-13 18:03:05 +00:00
Samuel Elliott
0bdd4b4614
Initial commit 2022-03-12 23:44:27 +00:00