Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions SwitchBlueprint.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ HOST: https://api-lp1.znc.srv.nintendo.net

## Account Login [/v1/Account/Login]

This is currenly **[Broken.](https://twitter.com/mattisenhower/status/908460571191795713)**
It is currently not possible to generate the `f` parameter for this endpoint without using the Nintendo Switch app. For more details, see `f` details below.

If you wish to use this API, extract the needed response from your phone using something like [Telerik Fiddler.](http://www.telerik.com/fiddler)
If you wish to use this API, extract the needed response from your phone using something like [Telerik Fiddler](http://www.telerik.com/fiddler) or [mitmproxy](https://mitmproxy.org).

Or, if you wish to use exclusively the [_Splatoon 2 API_](Splatoon2Blueprint.md), extract your iksm_session from a response while on the game specific integration.

### <a name="LoginAccount"></a> Login to Account [POST]

`naIdToken` is `id_token` from the response of [GET /connect/1.0.0/api/token](#GetServiceToken). `naBirthday` should be the birthday on the account used to login in the specified format.
`naIdToken` is `id_token` from the response of [GET /connect/1.0.0/api/token](#GetServiceToken).
`naBirthday` should be the birthday on the account used to login in the specified format.
`timestamp` is the current [unix (epoch) timestamp](https://www.epochconverter.com).
`requestId` is a generated [UUID version 4](https://www.uuidgenerator.net/version4).
`f` is a parameter which is generated by the switch app. It used to be able to be generated by the splatnet2statink API, but the parameter has recently changed so this is not currently possible. For now, the only way to retrieve `f` is by using mitmproxy or similar with a device running the Nintendo switch app. For more info on `f` see [splatnet2statink API](https://github.com/frozenpandaman/splatnet2statink/wiki/api-docs) and [this issue](https://github.com/frozenpandaman/splatnet2statink/issues/56).

+ Request

Expand All @@ -23,7 +27,10 @@ Or, if you wish to use exclusively the [_Splatoon 2 API_](Splatoon2Blueprint.md)
"language": "en-US",
"naBirthday": "yyyy-mm-dd",
"naCountry": "US",
"naIdToken": "[tokengoeshere]"
"naIdToken": "[tokengoeshere]",
"requestId": "123e4567-e89b-12d3-a456-426655440000",
"timestamp": 1537249847,
"f": "[fparameterhere]"
}
}

Expand Down