Skip to content

Commit

Permalink
update to TibiaData API v4
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasehlert committed Nov 25, 2023
1 parent 278c2b8 commit 9e030d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (b *Builder) housesWorker(client *resty.Client) error {
for _, town := range b.Towns {
log.Printf("[info] Retrieving data about houses and guildhalls in %s.", town)

ApiUrl := "https://" + TibiaDataAPIhost + "/v3/houses/" + b.Worlds[0] + "/" + url.QueryEscape(town)
ApiUrl := "https://" + TibiaDataAPIhost + "/v4/houses/" + b.Worlds[0] + "/" + url.QueryEscape(town)
res, err := client.R().Get(ApiUrl)
if err != nil {
return fmt.Errorf("Issue getting %s endpoint. Error: %s", ApiUrl, err)
Expand Down

0 comments on commit 9e030d7

Please sign in to comment.