spacemeowx2 / slp-server-rust

Switch-lan-play Server written in Rust
https://github.com/spacemeowx2/switch-lan-play
115 stars 16 forks source link

Where i can get the token, to perfom graphql queries? #14

Closed EsteveSegura closed 4 years ago

EsteveSegura commented 4 years ago

Im trying to perform this query { trafficInfo(token:"blablabla"){ upload } }

Obviusly is deneid, beacause the token is wrong... Where i can find this token? Thank you.

igromanru commented 4 years ago

I was recently going through the code and if I see it right, you have to set the token by yourself first.
The parameter for the server to start with token should be like this:
./slp-server-rust-linux-amd64 --admin_token=(something to use as a token)