Go package that provides an API to get official news about Riot Games and their games (League of Legends, Legends of Runeterra, Teamfight Tactics, VALORANT and Wild Rift)
package main
import (
"fmt"
"github.com/Antosik/rito-news/lol"
)
func main() {
client := lol.NewsClient{Locale: "ru-ru"}
items, err := client.GetItems(10)
if err != nil {
fmt.Printf("An error occured: %v", err)
} else {
for _, item := range items {
fmt.Println(item.Title, item.URL)
}
}
}
- League of Legends (examples)
- Legends of Runeterra (examples)
- Riot Games (examples)
- Teamfight Tactics (examples)
- VALORANT (examples)
- Wild Rift (examples)
This service isn't developed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends, Legends of Runeterra, Teamfight Tactics, VALORANT, or Wild Rift. League of Legends, Legends of Runeterra, Teamfight Tactics, VALORANT, Wild Rift and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends, Legends of Runeterra, Teamfight Tactics, VALORANT, Wild Rift (c) Riot Games, Inc.