{"id":13414076,"url":"https://github.com/dimuska139/rawg-sdk-go","last_synced_at":"2025-05-12T12:34:49.576Z","repository":{"id":39664817,"uuid":"304667692","full_name":"dimuska139/rawg-sdk-go","owner":"dimuska139","description":"This is RAWG SDK GO. This library contains methods for interacting with RAWG API.","archived":false,"fork":false,"pushed_at":"2022-05-28T10:05:10.000Z","size":163,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-31T20:53:21.556Z","etag":null,"topics":["go","rawg","rawg-api","sdk"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimuska139.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-16T15:31:37.000Z","updated_at":"2024-05-17T15:24:22.000Z","dependencies_parsed_at":"2022-09-07T17:51:17.433Z","dependency_job_id":null,"html_url":"https://github.com/dimuska139/rawg-sdk-go","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuska139%2Frawg-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuska139%2Frawg-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuska139%2Frawg-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimuska139%2Frawg-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimuska139","download_url":"https://codeload.github.com/dimuska139/rawg-sdk-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225136246,"owners_count":17426444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","rawg","rawg-api","sdk"],"created_at":"2024-07-30T20:01:56.988Z","updated_at":"2024-11-18T06:21:53.994Z","avatar_url":"https://github.com/dimuska139.png","language":"Go","funding_links":[],"categories":["Third-party APIs","第三方api","第三方API","Utility","第三方API`第三方API 汇总`"],"sub_categories":["Fail injection","Utility/Miscellaneous","实用程序/Miscellaneous","查询语","HTTP Clients"],"readme":"# RAWG Video Games Database Golang client\n\n[![Build Status](https://travis-ci.org/dimuska139/rawg-sdk-go.svg?branch=master)](https://travis-ci.org/dimuska139/rawg-sdk-go)\n[![codecov](https://codecov.io/gh/dimuska139/rawg-sdk-go/branch/master/graph/badge.svg)](https://codecov.io/gh/dimuska139/rawg-sdk-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dimuska139/rawg-sdk-go)](https://goreportcard.com/report/github.com/dimuska139/rawg-sdk-go)\n[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/dimuska139/rawg-sdk-go/blob/master/LICENSE)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go) \n\nThis is unofficial RAWG SDK GO. This library contains methods for interacting with [RAWG API](https://rawg.io/).\n\n## Installation\n\n```shell\ngo get github.com/dimuska139/rawg-sdk-go\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"net/http\"\n    \"strings\"\n    \"time\"\n    \"github.com/dimuska139/rawg-sdk-go/v3\"\n)\n\nfunc main() {\n    config := rawg.Config{\n        ApiKey:  \"yourapikey\", // Your personal API key (see https://rawg.io/apidocs)\n        Language: \"ru\",\n        Rps:      5,\n    }\n    client := rawg.NewClient(http.DefaultClient, \u0026config)\n    \n    filter := rawg.NewGamesFilter().\n        SetSearch(\"Gta5\").\n        SetPage(1).\n        SetPageSize(10).\n        ExcludeCollection(1).\n        WithoutParents()\n    \n    ctx, cancel := context.WithTimeout(context.Background(), time.Duration(time.Millisecond*500))\n    defer cancel()\n    data, total, err := client.GetGames(ctx, filter)\n\n    ...\n}\n```\n\nThe tests should be considered a part of the documentation. Also you can read [official docs](https://rawg.io/apidocs).\n\n## API limitations\n\nOnly 5 requests per second allowed from one IP. The \"Rps\" parameter in configuration performs this limitation. \nSo you don't worry about it.\n\n## License\n\nRAWG SDK GO is released under the\n[MIT License](http://www.opensource.org/licenses/MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimuska139%2Frawg-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimuska139%2Frawg-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimuska139%2Frawg-sdk-go/lists"}