Skip to content

trackmania-io/nadeopub

Repository files navigation

Nadeo Public API Client

Go client for the public NadeoServices API using the client_credentials grant type.

Minimal example

c := nadeopub.NewClient(nadeopub.ClientConfig{
	ClientId:     os.Getenv("TEST_CLIENT_ID"),
	ClientSecret: os.Getenv("TEST_CLIENT_SECRET"),
})

c.Authenticate()

accountId := "7398eeb6-9b4e-44b8-a7a1-a2149955ac70"
displayNames, _ := c.GetDisplayNames([]string{accountId})
fmt.Printf("%s = %s", accountId, displayNames[accountId])

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages