Goroyale
A Golang wrapper for the Clash Royale API at https://royaleapi.com/.
Install / Use
/learn @jegfish/GoroyaleREADME
goroyale
A Golang wrapper for the Clash Royale API at https://royaleapi.com/.
Installing
If you have Go installed you can run this command.
go get github.com/jegfish/goroyale
Example
package main
import (
"fmt"
"github.com/jegfish/goroyale"
)
var token = ""
func main() {
c, err := goroyale.New(token, 0) // 0 will use the default request timeout of 10 seconds
if err != nil {
fmt.Println(err)
return
}
ver, err := c.APIVersion()
if err != nil {
fmt.Println(err)
} else {
fmt.Println("API Version:", ver)
}
params := map[string][]string{
"exclude": {"name"},
}
p, err := c.Player("8L9L9GL", params)
if err != nil {
fmt.Println(err)
} else {
// will just print "Name:" as p.Name is "" because it was excluded
// more info about this at https://docs.royaleapi.com/#/field_filter
fmt.Println("Name:", p.Name)
fmt.Println("Tag:", p.Tag)
fmt.Println("Clan:", p.Clan.Name)
}
}
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
344.1kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
