Had to make a minor change to the client.go adding request options. This is because the SUMMONER-V1 has en endpoint that requires setting an authorization header. So, instead of breaking all methods, I thought adding a functional options pattern was better. This would also allow for other extensions of the request in the future.
Adding this as a draft since this is not related to an active issue and is rather big. I will continue the godoc of the models.go
Also found out that the API is a bit out of sync for what it seems. Running live API-calls would sometime give other properties than specified in the API. I have added some of the missing fields and removed some to try match the API as close as possibly without making it hard to understand.
Added support for the following TFT APIs:
Had to make a minor change to the
client.go
adding request options. This is because theSUMMONER-V1
has en endpoint that requires setting an authorization header. So, instead of breaking all methods, I thought adding a functional options pattern was better. This would also allow for other extensions of the request in the future.Adding this as a draft since this is not related to an active issue and is rather big. I will continue the godoc of the
models.go
Also found out that the API is a bit out of sync for what it seems. Running live API-calls would sometime give other properties than specified in the API. I have added some of the missing fields and removed some to try match the API as close as possibly without making it hard to understand.