-
splatnet3_scraper.auth.GraphQLQueries.query_hash(query_hash, bullet_token, gtoken, language, user_agent=
None, variables={}, override={}) Makes a GraphQL query using the persisted query hash. This method generates the headers and body for the query and then makes the request. For more information on the valid queries, see the queries page of the documentation.
- Parameters:¶
- query_hash : str | bytes¶
The hash 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.