Samuel Elliott
f043d8ebb0
Log coral status code
2023-07-24 17:34:07 +01:00
Samuel Elliott
7bdf9f578a
Remove uuid
2023-07-13 01:10:37 +01:00
Samuel Elliott
d7a64b9807
Switch to undici
2023-07-12 23:15:37 +01:00
Samuel Elliott
3e1bd2621a
Improve error messages, record error history for use limits
2023-07-05 00:50:04 +01:00
Samuel Elliott
3c6025790e
API error classes
2023-07-04 22:01:22 +01:00
Samuel Elliott
d1785ee1fc
Add CoralApiInterface
2023-07-04 21:01:25 +01:00
Samuel Elliott
72c2927de8
Save Nintendo Account tokens
2023-06-03 22:08:25 +01:00
Samuel Elliott
0af48a18ae
Add Nintendo Account authorisation helpers
2023-06-03 21:54:25 +01:00
Samuel Elliott
4d0b708469
Write debug logs
2023-06-01 18:45:31 +01:00
Samuel Elliott
512a9a2b60
Prevent using expired tokens
2023-05-25 14:07:32 +01:00
Samuel Elliott
f6aa9a17ab
Add na_id and coral_user_id to f generation requests
2023-05-25 13:42:48 +01:00
Samuel Elliott
6f6148fcad
Send coral platform/version to f generation API
2023-03-01 09:18:23 +00:00
Samuel Elliott
788083b7f6
Add coral/SplatNet 3 client
...
https://github.com/samuelthomas2774/nxapi/issues/42
2022-12-26 20:55:32 +00:00
Samuel Elliott
e2ac4bbfb3
Use cached web service token to renew SplatNet 3 tokens and fix retrying getting web service tokens after renewing coral token
2022-10-11 20:47:26 +01:00
Samuel Elliott
5cb66f4249
Use cached web service token to renew SplatNet 3 tokens
2022-10-11 12:05:50 +01:00
Samuel Elliott
b6002cbf8b
Regenerate f when requesting a web service token after refreshing the coral token
2022-10-11 11:32:41 +01:00
Samuel Elliott
8012dba821
Initial Splatfest types and commands
2022-09-19 19:12:22 +01:00
Samuel Elliott
c9c91a874d
Fix web service ID type in token request, handle errors requesting a new token
2022-09-10 16:58:02 +01:00
Samuel Elliott
5b93c63c23
Use coral result object directly
2022-09-07 17:33:40 +01:00
Samuel Elliott
9112a5a02b
Return response objects and return coral result object directly
2022-09-07 17:13:53 +01:00
Samuel Elliott
66c8efdb96
Accept numbers for the hash_method option when generating f parameters
2022-09-07 10:22:37 +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
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
2d52f17022
Update config URL and use config data
2022-07-29 17:59:17 +01:00
Samuel Elliott
85a9193328
Update coral
...
https://github.com/samuelthomas2774/nxapi/issues/14
2022-07-27 14:16:43 +01:00
Samuel Elliott
a32c3dec72
Update API types
2022-07-23 17:45:20 +01:00
Samuel Elliott
21f5f095a0
Add helper function for setting user agent
2022-07-01 21:22:40 +01:00
Samuel Elliott
a6a69b1799
Rename most instances of znc to coral
2022-06-28 19:22:01 +01:00