Skip to content

custom keys

eli fessler edited this page Sep 17, 2018 · 9 revisions

As of version 0.2.0, splatnet2statink supports adding custom keys to config.txt to enable specialized functionality. These are features which change how the script runs, but are closer to user-specific settings rather than command line flags which can be quickly specified or changed each time the script is run.

If you'd like to request official support for your custom feature so that it may be enabled or disabled with an optional key, please create a GitHub issue or reach out on Twitter. Requesting support to accommodate specific use cases makes it easier to apply future updates to the script without having to maintain a separate fork.

Supported keys

  • ignore_private: Ignores all private battle results and does not upload them to stat.ink.
    • May be used when running the script as a cron job or as a daemon. See the automation page for more information.

The default format for config.txt with all custom keys enabled is provided below for reference:

{
    "api_key": "",
    "cookie": "",
    "session_token": "",
    "user_lang": "",
    "ignore_private": "true"
}

where api_key is your stat.ink API key, cookie is your iksm_session cookie, session_token is your account token used to generate cookies (should be blank if user is manually acquiring cookies from the app), and user_lang is your locale.

Clone this wiki locally