splatnet3_scraper.auth.NSO.set_new_f_token_function(new_function=None)

Sets the function used to generate the f_token.

This method will set the function used to generate the f_token. The function must take the following arguments:

  1. The f_token generation url.

  2. The user’s token, either the id_token for step 1, or the

    web_service_access_token for step 2.

  3. The step number (either 1 or 2)

The function must return a tuple containing the following:

  1. The f_token.

  2. The request id.

  3. The timestamp.

Parameters:
new_function : FToken_Gen

The new function to use to generate the ftoken. This function must take the following arguments:

  1. The f_token generation url.

  2. The user’s token, either the id_token for step 1, or

    the web_service_access_token for step 2.

  3. The step number (either 1 or 2)

The function must return a tuple containing the following:

  1. The f_token.

  2. The request id.

  3. The timestamp.

None : If this argument is not provided or is

default : the

restored. : f_token generation method will be