Skip to content

Shavixinio/gosuapi

Repository files navigation

gosuapi

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

Features (so far)

  • API v2 support (no legacy API support)
  • Getting info about an user and their scores

Example usage

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)
}

Contributing

I welcome all sorts of contributions. Feel free to make a pull request for any additions or changes you'd like to propose

About

An API wrapper for easy interaction with the osu! API

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages