See the mod.io Documentation Here
go get -u github.com/M4cs/gomodio
package main
import (
"fmt"
"github.com/M4cs/gomodio"
)
func main() {
// Create a User
user := gomodio.NewUser("YOUR_API_KEY", "YOUR_EMAIL")
// Search for games
games, err := user.GetGames(map[string]string{"q": "Skater XL"})
if err != nil {
fmt.Println(err.Error())
}
for _, g := range games.Data {
fmt.Println("Name:", g.Name)
fmt.Println("Summary:", g.Summary)
}
// Grab Game Object
game, err := user.GetGame(games.Data[0].ID, nil)
if err != nil {
fmt.Println(err.Error())
}
fmt.Println(game.ID)
}
- Authentication (No Third-Party)
- Games
- Mods
- Files
- Subscribe
- Comments
- Media
- Events
- Tags
- Ratings
- Stats
- Metadata
- Dependencies
- Teams
- General
- Reports
- Batch
- Me
- Basic exportation documentation
- Pretty Godocs
- [/] Examples