mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-08-19 09:09:03 -05:00
Update documented default API for f parameter generation
This commit is contained in:
@@ -15,7 +15,7 @@ nxapi exports it's API library and types. nxapi is split into several modules th
|
||||
|
||||
### Install
|
||||
|
||||
nxapi should be installed as a project dependency rather than a globally installed package. TypeScript definitions are included as do not need to be installed separately.
|
||||
nxapi should be installed as a project dependency rather than a globally installed package. TypeScript definitions are included and do not need to be installed separately.
|
||||
|
||||
```sh
|
||||
# From registry.npmjs.com
|
||||
|
||||
@@ -91,11 +91,11 @@ const league_id = toLeagueId(new Date(Date.UTC(2022, 0, 1, 0)), LeagueType.TEAM)
|
||||
|
||||
### `toXRankSeasonId`
|
||||
|
||||
Converts a year and month to a string used in X Rank leaderboard requests (`/league_match_ranking/{id}/{region}` or `SplatNet2Api.getLeagueMatchRanking`).
|
||||
Converts a year and month to a string used in X Rank leaderboard requests (`/x_power_ranking/{season}/{summary/rule}?page={page}` or `SplatNet2Api.getXPowerRankingSummary`/`SplatNet2Api.getXPowerRankingLeaderboard`).
|
||||
|
||||
Months in this function start from 1, instead of 0 like `Date`s.
|
||||
|
||||
This function does not usually need to be used with `SplatNet2Api.getLeagueMatchRanking`, as a `Date` and `LeagueType` can be passed directly to it.
|
||||
This function does not usually need to be used with `SplatNet2Api.getXPowerRankingSummary` or `SplatNet2Api.getXPowerRankingLeaderboard`, as an `XRankSeason`/`Date` and `XPowerRankingRule` can be passed directly to it.
|
||||
|
||||
```ts
|
||||
import { toXRankSeasonId } from 'nxapi/splatnet2';
|
||||
|
||||
Reference in New Issue
Block a user