Skip to content

Kryszak/gwatlin

Repository files navigation

Build Status E2E Status Codacy Badge Codacy Badge License: MIT Maven Central

Gwatlin

Guild Wars 2 API client written in Kotlin

Client operates on API version v2.

Important

It seems that not all api features are documented on wiki page, so feel free to create issues for missing features. Issue should contain example json response for given endpoint.

Example usage

Code

// Client without API KEY
val wvwClient = GWWvwClient()
val wvwRank = wvwClient.getRanks(listOf(1))
println(wvwRank)
// WvwRank(id=1, minRank=1, title=Invader)

// Client with API KEY
val tokenInfoClient = GWTokenClient("API KEY here")
val tokenInfo = tokenInfoClient.getTokenInfo()
println(tokenInfo)
// Token(id=ABCDE02B-8888-FEBA-1234-DE98765C7DEF, name=My API Key, permissions=[account, characters, tradingpost, unlocks, build], type=null, expiresAt=null, issuedAt=null, urls=null)

Documentation

For full code documentation visit documentation page