splatnet3_scraper.auth.GraphQLQueries.query(query_name, bullet_token, gtoken, language, user_agent=None, variables={}, override={})

Makes a GraphQL query. This method is a wrapper around the query_hash method. It gets the query hash using the get_query method and then calls the query_hash method to make the request. For more information on the valid queries, see the queries page of the documentation.

Parameters:
query_name : str

The name of the query.

bullet_token : str

The bullet token.

gtoken : str

The gtoken.

language : str

The language code to use.

user_agent : str | None

The user agent to use. If None, the default user agent will be used. Defaults to None.

variables : dict[str, Any]

The variables to pass to the query. If the query does not take any variables, this can be an empty dictionary. Defaults to an empty dictionary.

override : dict[str, Any]

Any headers that should override the default headers. Defaults to an empty dictionary.

Returns:

requests.Response – The response from the GraphQL query.