Documentation ¶
Overview ¶
IGDB (Internet Game Database) API
Index ¶
- Constants
- type Client
- func (c *Client) ExternalIdsByGameId(ctx context.Context, id string) (*ExternalIds, error)
- func (c *Client) GameById(ctx context.Context, id string) (*Game, error)
- func (c *Client) GameCoverUrls(ctx context.Context, id string) ([]string, error)
- func (c *Client) GameScreenshotUrls(ctx context.Context, id string) ([]string, error)
- func (c *Client) GameYoutubeVideoIds(ctx context.Context, id string) ([]string, error)
- func (c *Client) SearchGames(ctx context.Context, name string) ([]Game, error)
- func (c *Client) WebsitesByGameId(ctx context.Context, id string) ([]Website, error)
- type ExternalIds
- type Game
- type UnixTime
- type Website
Constants ¶
View Source
const ( WebsiteOfficial = 1 WebsiteWikia = 2 WebsiteWikipedia = 3 WebsiteFacebook = 4 WebsiteTwitter = 5 WebsiteTwitch = 6 WebsiteInstagram = 8 WebsiteYoutube = 9 WebsiteIphone = 10 WebsiteIpad = 11 WebsiteAndroid = 12 WebsiteSteam = 13 WebsiteReddit = 14 WebsiteItch = 15 WebsiteEpicgames = 16 WebsiteGog = 17 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ExternalIdsByGameId ¶
this game's ID is: - "com.frogmind.badland" on Google Play - "269670" on Steam - etc.
func (*Client) GameCoverUrls ¶
func (*Client) GameScreenshotUrls ¶
func (*Client) GameYoutubeVideoIds ¶
func (*Client) SearchGames ¶
type ExternalIds ¶
Click to show internal directories.
Click to hide internal directories.