ZekeSnider / NintendoSwitchRESTAPI

Reverse engineered REST API used in the Nintendo Switch app for iOS. Includes documentation on Splatoon 2's API.
MIT License
645 stars 43 forks source link

Account Login -- "Upgrade required." #6

Open joshbirnholz opened 7 years ago

joshbirnholz commented 7 years ago

Everything is good up until the Account Login step at /v1/Account/Login.

I get returned an error message saying "Upgrade required." I assume this has to do with the new version of the Nintendo Switch Online app? At the least, I tried replacing all references to version 1.0.4 with 1.1.0 (which is the newest version) but then I get an "Invalid token." error on this step.

Any ideas?

frozenpandaman commented 7 years ago

@joshbirnholz This problem is still unsolved. Nintendo introduced a new parameter called f which we (me and at least a few others with Splatoon-related projects/APIs) can't figure out how to generate yet.

https://twitter.com/mattisenhower/status/908460571191795713

So, at the moment, the only way to get/generate a cookie used to access SplatNet 2 is through the app itself.

frozenpandaman commented 6 years ago

Just to update the conversation for anyone looking in the future…

See the s2s API docs for information on generating f.

…well, that is until a few hours ago today, when they changed the key used in the HMAC, so it doesn't generate valid tokens anymore. But I expect we'll get it working again soon, considering we did once before already… unless they changed more stuff we don't know about yet.

ZekeSnider commented 6 years ago

Updated the API docs in #10 to reflect the current state of the f parameter. If there's more progress on the s2s issue, I'll update again accordingly.

frozenpandaman commented 5 years ago

Heads up @ZekeSnider (and @joshbirnholz) that f generation is now fixed in splatnet2statink v1.4.0 & my API docs page updated.