splatnet3_scraper.auth.NSO.get_gtoken_request(web_service_access_token, f_token, request_id, timestamp)

Given the web_service_access_token, f_token, request_id, and timestamp, returns the gtoken.

This is named differently from the other get_gtoken function to avoid confusion. This function specifically makes the request to Nintendo’s servers to obtain the gtoken given the web service access token, f_token, request_id, and timestamp. The other function only takes the session_token and generates all of the other intermediate tokens to obtain the gtoken by finally calling this function.

Parameters:
web_service_access_token : str

The web_service_access_token obtained from the first half of the gtoken generation process.

f_token : str

The f_token generated from the web_service_access_token. It is important that this is the f_token generated from the web_service_access_token using the second hashing method and not the first.

request_id : str

The request_id returned alongside the f_token and timestamp.

timestamp : str

The timestamp returned alongside the f_token and request_id.

Returns:

str – The gtoken.