smashgg-api-wrapper-python
How to use:
pip install smashggAPI
- Add your public API key as an environmental variable:
In .bashrc/whatever equivalent file:
export SMASHGG_API_KEY='your api key here'
- Use as such in your python code:
from smashggAPI import client
result = client.query('''
query TournamentInfo ($slug: String!) {
tournament(slug: $slug) {
id
name
}
}
''',
{
"slug": "genesis-6"
})
Contributing
Running tests
python -m pip install -r requirements.txt
python -m pytest