Jump to content

Switch - nxapi v1.2.0


Recommended Posts

  • Rename ZncApi to CoralApi
    • ZncApi and znc will be removed later. Use CoralApi and coral instead.
  • Add commands to get the SplatNet 2 iksm_session cookie and NookLink user token
    • These commands are suitable for use in scripts. For example, curl --header "Cookie: iksm_session=`nxapi splatnet2 token`" https://app.splatoon2.nintendo.net/api/records works (but doesn't attempt to appear as a normal SplatNet 2 API request).
    • nxapi splatnet2 token will print the iksm_session cookie to stdout.
    • nxapi splatnet2 token --json will print the iksm_session cookie, region and unique player ID embedded in the SplatNet 2 HTML template to stdout.
    • nxapi nooklink user-token will print the authentication token for the selected NookLink user to stdout.
    • nxapi nooklink user-token --json will print the authentication token for the selected NookLink user and the NookLink user ID to stdout.
  • Add a command and helper functions for Splatoon 2 X Rank seasons
    • X Rank seasons are calculated locally (by the SplatNet 2 web app and nxapi). The SplatNet 2 API doesn't actually provide this information.
    • nxapi splatnet2 x-rank-seasons [--json] prints all X Rank seasons.
    • getSplatNet2XRankSeasons, getSplatNet2XRankSeason, getSplatNet2NextXRankSeason, getSplatNet2PreviousXRankSeason are exported for use in JavaScript/TypeScript code.
  • Add a function to set a User-Agent for s2s/flapg/imink/nxapi API requests
    • addUserAgent should be called when using nxapi as a dependency, e.g. addUserAgent('your-app-name/1.0.0').
  • Update Discord title configuration
    • Added custom application for Pokémon UNITE (#6)
  • Added an icon for the system tray menu
  • Remove unused dependencies from the app build
    • This makes the app quite a bit smaller.
  • Improved error handling in the app
  • Fix update message is not cleared after updating

Build artifacts: https://gitlab.fancy.org.uk/samuel/nxapi/-/jobs/3707/artifacts/browse
Full changelog: v1.1.0...v1.2.0

View the full article

Link to comment
Share on other sites

×
×
  • Create New...