Commit Graph

75 Commits

Author SHA1 Message Date
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
960624cae4
Update flapg API 2022-09-01 14:08:48 +01:00
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