gosuapi is an API wrapper for osu!api v2 written in Go.
Warning
The project is a WIP and in very early stages of development, as I am making this project and at the same time just started learning Go. Most of the stuff here is probably subject to change
- API v2 support (no legacy API support)
- Getting info about an user and their scores
package main
import (
"fmt"
"log"
"github.com/Shavixinio/gosuapi"
)
func main() {
client, err := gosuapi.InitClient("CLIENT_ID", "CLIENT_SECRET")
if err != nil {
panic(err)
}
resp, err := client.GetUser("Shavix")
if err != nil {
log.Fatalf("Error getting user: %v", err)
}
fmt.Println(resp)
}I welcome all sorts of contributions. Feel free to make a pull request for any additions or changes you'd like to propose