Interface with OpenXBL's API using Go.
Note: This is in an experimental state. PRs are always welcome!
- Create an account with OpenXBL
- Verify your email
- Create an API key
package main
import (
"fmt"
"log"
"time"
"github.com/wolveix/openxbl-go"
)
func main() {
client := openxbl.NewClient("your-api-token-here", time.Second*3)
account, err := client.GetAccount()
if err != nil {
log.Fatalf("Failed to query account info: %v", err)
}
fmt.Println(account)
}
- Implement testing for all functions
- Support all API endpoints