apex_stats’s documentation!

Y a y

Contents

Usage

Usage for the library apex_stats
Before using this library make sure you use
import apex_stats as apex

not

import apex-stats

recentlyPlayed(us-ername/id, userplatform)

Returns 5 of your recently played legends as a list.
username/id - the desired username to get data from.
userplatform - default=origin, choose from ‘origin’, ‘xbl’, ‘psn’.
1
2
3
4
5
6
 apexInstance = apex.singleStats(your-tracker.gg-api-key)
 apexStats = apexInstance.recentlyPlayed("testuser")

 print(apexStats)

 >>> ['your', 'last', 'played', 'characters']

matchHistory(username/id, gamecount, userplatfom)

Returns data from x number of games.
username/id - the desired username to get data from.
userplatform - default=origin, choose from ‘origin’, ‘xbl’, ‘psn’.
gamecount - number of games you want data from (counted from your last game)
1
2
3
4
5
6
7
 apexInstance = apex.singleStats(your-tracker.gg-api-key)
 apexHistory = apexInstance.matchHistory("testuser", 2)

 print(apexStats)

 >>> [{game1:legend, game1:kills, game1:duration},
 {game2:legend, game2:kills, game2:duration}]

FAQ

Who is behind this

I am a high school student starting out in coding. This is a fun little project I thought of while making a discord bot to practice.

Why did you make docs AND a package when this is useless

Because practice. I need a lot of practice.

This page is useless

I know. Go back?

License

MIT License

Copyright (c) 2020 Yamozha

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.