Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ruby cmd-line utility that hits Blizzard's pubic API for WoW character stats.

License

jackl0phty/getwowstats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ko-fi

GETWOWSTATS

GOLang cmd-line utility that hits Blizzard's pubic API for WoW character stats.

Supported Platforms

I will unoffically only be supporting Linux Mint since that's the platform I run this tool from. However it should work on most *NIX systems that can run GOLANG.

Install Prerequisites

A recent version of GOlang ( tested with version go1.13.8 linux/amd64 on Linux Mint )

Library to read cmd line options

go get github.com/ogier/pflag

HARD REQUIREMENTS YOU MUST DO TO USE GETWOWSTATS

You MUST have a valid WoW token for Blizzard's API or you can't use this tool. No worries it's free.

How/Where do I get a WoW API Token?

Great question and Blizz has your back. Read their doc here.

OK I Have a WoW API Token What next?

You MUST export ENV VAR WOW_API_TOKEN with the value of a valid token.

export WOW_API_TOKEN=your_secret_api_wow_token_goes_here

Sample Usage & Output

Get profile summary stats for a given character

./getwowstats.go -r aggramar -l us -c pownage -m GetProfileSummary
Name: Pownage
Gender: Male
Faction: Horde
Race: Orc
Class: Warlock
Realm: Aggramar
Level: 54
Active Spec: Affliction
Experience: 246258
Achieveent Points: 1310
Last Login: 1.622774087e+12
Avg. Item Lvl.: 94
Equipped Item Lvl.: 88

Get version of getwowstats

./getwowstats -veresion
getwowstats: Version 1.0

TESTING

Install the following in order to test getwowstats

Run the formatting linter gofmt

gofmt -e getwowstats.go

goimport adds missing imports and removes unreferenced imports.

 go get golang.org/x/tools/cmd/goimports

Just say NO to global variables

go get 4d63.com/gochecknoglobals```

About

Ruby cmd-line utility that hits Blizzard's pubic API for WoW character stats.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages