Popularity
0.4
Stable
Activity
4.0
Declining
2
1
0

Programming language: Go
License: MIT License
Tags: Third-party APIs    
Latest version: v1.0.1

rawg-sdk-go alternatives and similar packages

Based on the "Third-party APIs" category.
Alternatively, view rawg-sdk-go alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of rawg-sdk-go or a related project?

Add another 'Third-party APIs' Package

README

RAWG Video Games Database Golang client

Build Status codecov Go Report Card License Mentioned in Awesome Go

This is unofficial RAWG SDK GO. This library contains methods for interacting with RAWG API.

Installation

go get github.com/dimuska139/rawg-sdk-go

Usage

package main

import (
    "fmt"
    "net/http"
    "strings"
    "github.com/dimuska139/rawg-sdk-go"
)

func main() {
    config := rawg.Config{
        ApiKey:  "yourapikey", // Your personal API key (see https://rawg.io/apidocs)
        Language: "ru",
        Rps:      5,
    }
    client := rawg.NewClient(http.DefaultClient, &config)

    filter := rawg.NewGamesFilter().
        SetSearch("Gta5").
        SetPage(1).
        SetPageSize(10).
        ExcludeCollection(1).
        WithoutParents()

    data, total, err := client.GetGames(filter)

    ...
}

The tests should be considered a part of the documentation. Also you can read official docs.

API limitations

Only 5 requests per second allowed from one IP. The "Rps" parameter in configuration performs this limitation. So you don't worry about it.

License

RAWG SDK GO is released under the MIT License.


*Note that all licence references and agreements mentioned in the rawg-sdk-go README section above are relevant to that project's source code only.