igdbclient

package
v0.0.0-...-d88fc4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BaseURLV4 is version 4
	BaseURLV4 = "https://api.igdb.com/v4"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL string
	// contains filtered or unexported fields
}

Client is the actual client

func NewClient

func NewClient(accesToken, clientID string) (*Client, error)

NewClient is a factory pattern

func (*Client) SearchGame

func (c *Client) SearchGame(name string) (*Response, error)

SearchGame sends a request for game search

type Response

type Response []struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Response from searching for Trino game

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL