crawlora-gosugamers 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/crawlora/gosugamers/client.rb +2 -2
- data/lib/crawlora/gosugamers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ea8e0c705f837c481593af02ed00e6dcb33d99f6974d91a6ac9882a41c0849f
|
|
4
|
+
data.tar.gz: 14c35510cdcf0fc9b9a3be0cfc298b5afe2d54de5b49d2354d24686f6006d289
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '08a6c5fd01e19ba66c71002ff1bbbede239f4da654e2b491c5e3669efd3b80b1f746172ffcce1c017e886c810330223ce31e145063a704c79fe3799853be4587'
|
|
7
|
+
data.tar.gz: a4af890fdc12afecf1fd4f6ed6f35a4e2907b9756b6cbee3d0ad277957b30c1a8a2013e27108ec4e8ecea7ba64f2d7b178499ce6d74f6468a5a0089485fdb1b2
|
data/CHANGELOG.md
CHANGED
|
@@ -19,7 +19,7 @@ module Crawlora
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
OPERATIONS = JSON.parse(<<~'JSON').freeze
|
|
22
|
-
{"gosugamers-article": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-article", "method": "GET", "params": [{"description": "Numeric article id from gosugamers-articles", "in": "query", "name": "id", "required": true, "type": "string", "x-example": "79434"}], "path": "/gosugamers/article", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-articles": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-articles", "method": "GET", "params": [{"description": "Article section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india, entertainment, genshin-impact, honkai-star-rail, zenless-zone-zero, honor-of-kings, umamusume-pretty-derby; omit for all", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india", "entertainment", "genshin-impact", "honkai-star-rail", "zenless-zone-zero", "honor-of-kings", "umamusume-pretty-derby"], "in": "query", "name": "section", "type": "string"}, {"description": "Article type; one of news, features; omit for both", "enum": ["news", "features"], "in": "query", "name": "type", "type": "string"}, {"description": "1-based page; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/articles", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india", "entertainment", "genshin-impact", "honkai-star-rail", "zenless-zone-zero", "honor-of-kings", "umamusume-pretty-derby"], "in": "query", "name": "section", "type": "string"}, {"enum": ["news", "features"], "in": "query", "name": "type", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-encounters": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-encounters", "method": "GET", "params": [{"description": "Game section of the match; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"description": "Numeric id of the match whose other meetings are wanted; that match is left out", "in": "query", "name": "match_id", "required": true, "type": "string", "x-example": "660816"}, {"description": "Numeric id of the first team", "in": "query", "name": "team1_id", "required": true, "type": "string", "x-example": "38335"}, {"description": "Numeric id of the second team", "in": "query", "name": "team2_id", "required": true, "type": "string", "x-example": "37547"}], "path": "/gosugamers/encounters", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "match_id", "required": true, "type": "string"}, {"in": "query", "name": "team1_id", "required": true, "type": "string"}, {"in": "query", "name": "team2_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-games": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-games", "method": "GET", "params": [], "path": "/gosugamers/games", "pathParams": [], "produces": ["application/json"], "queryParams": [], "security": ["ApiKeyAuth"]}, "gosugamers-match": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-match", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "dota2"}, {"description": "Numeric tournament id from gosugamers-matches or gosugamers-results (tournament.id)", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63208"}, {"description": "Numeric match id from gosugamers-matches or gosugamers-results (id)", "in": "query", "name": "match_id", "required": true, "type": "string", "x-example": "663299"}], "path": "/gosugamers/match", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "tournament_id", "required": true, "type": "string"}, {"in": "query", "name": "match_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-match-game": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-match-game", "method": "GET", "params": [{"description": "Numeric game id from the games list of gosugamers-match", "in": "query", "name": "game_id", "required": true, "type": "string", "x-example": "1361936"}], "path": "/gosugamers/match-game", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "game_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-matches": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-matches", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india; omit for all games", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"description": "1-based page; page 1 with the default size is read from the public page, any other page or size from the site's JSON API; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/matches", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-player": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-player", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "dota2"}, {"description": "Numeric player id from gosugamers-team (roster[].id)", "in": "query", "name": "player_id", "required": true, "type": "string", "x-example": "368742"}], "path": "/gosugamers/player", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "player_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-rankings": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-rankings", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"description": "Ranking region id from the regions list of the response; 0 is Global; defaults to 0", "in": "query", "minimum": 0, "name": "region_id", "type": "integer"}, {"description": "Team name prefix, up to 100 characters", "in": "query", "name": "q", "type": "string", "x-example": "Te"}, {"description": "1-based page; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/rankings", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "region_id", "type": "integer"}, {"in": "query", "name": "q", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-results": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-results", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india; omit for all games", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"description": "1-based page; page 1 with the default size is read from the public page, any other page or size from the site's JSON API; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/results", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-stage-groups": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-stage-groups", "method": "GET", "params": [{"description": "Numeric tournament id from gosugamers-tournaments or gosugamers-matches", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63147"}, {"description": "Numeric stage id (stages[].id) from gosugamers-tournament", "in": "query", "name": "stage_id", "required": true, "type": "string", "x-example": "28413"}], "path": "/gosugamers/stage-groups", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "tournament_id", "required": true, "type": "string"}, {"in": "query", "name": "stage_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-team": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-team", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "dota2"}, {"description": "Numeric team id from gosugamers-matches, gosugamers-results or gosugamers-match (teams[].id)", "in": "query", "name": "team_id", "required": true, "type": "string", "x-example": "51203"}], "path": "/gosugamers/team", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "team_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-team-results": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-team-results", "method": "GET", "params": [{"description": "Numeric team id from gosugamers-rankings, gosugamers-results or gosugamers-team", "in": "query", "name": "team_id", "required": true, "type": "string", "x-example": "37547"}, {"description": "1-based page; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/team-results", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "team_id", "required": true, "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-tournament": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-tournament", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "dota2"}, {"description": "Numeric tournament id from gosugamers-matches or gosugamers-results (tournament.id)", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63208"}], "path": "/gosugamers/tournament", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "tournament_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-tournament-participants": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-tournament-participants", "method": "GET", "params": [{"description": "Game section of the tournament; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"description": "Numeric tournament id from gosugamers-tournaments, gosugamers-matches or gosugamers-results", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63147"}], "path": "/gosugamers/tournament-participants", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "tournament_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-tournament-talents": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-tournament-talents", "method": "GET", "params": [{"description": "Numeric tournament id from gosugamers-tournaments, gosugamers-matches or gosugamers-results", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63147"}], "path": "/gosugamers/tournament-talents", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "tournament_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-tournaments": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-tournaments", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india; omit for all games", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"description": "Tournament state; one of all, ongoing, upcoming, past; defaults to all", "enum": ["all", "ongoing", "upcoming", "past"], "in": "query", "name": "state", "type": "string"}, {"description": "Tournament name prefix, up to 100 characters", "in": "query", "name": "q", "type": "string", "x-example": "VCT"}, {"description": "1-based page; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/tournaments", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"enum": ["all", "ongoing", "upcoming", "past"], "in": "query", "name": "state", "type": "string"}, {"in": "query", "name": "q", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}}
|
|
22
|
+
{"gosugamers-article": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-article", "method": "GET", "params": [{"description": "Numeric article id from gosugamers-articles", "in": "query", "name": "id", "required": true, "type": "string", "x-example": "79434"}], "path": "/gosugamers/article", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-articles": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-articles", "method": "GET", "params": [{"description": "Article section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india, entertainment, genshin-impact, honkai-star-rail, zenless-zone-zero, honor-of-kings, umamusume-pretty-derby; omit for all", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india", "entertainment", "genshin-impact", "honkai-star-rail", "zenless-zone-zero", "honor-of-kings", "umamusume-pretty-derby"], "in": "query", "name": "section", "type": "string"}, {"description": "Article type; one of news, features; omit for both", "enum": ["news", "features"], "in": "query", "name": "type", "type": "string"}, {"description": "1-based page; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/articles", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india", "entertainment", "genshin-impact", "honkai-star-rail", "zenless-zone-zero", "honor-of-kings", "umamusume-pretty-derby"], "in": "query", "name": "section", "type": "string"}, {"enum": ["news", "features"], "in": "query", "name": "type", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-encounters": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-encounters", "method": "GET", "params": [{"description": "Game section of the match; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "valorant"}, {"description": "Numeric id of the match whose other meetings are wanted; that match is left out", "in": "query", "name": "match_id", "required": true, "type": "string", "x-example": "660816"}, {"description": "Numeric id of the first team", "in": "query", "name": "team1_id", "required": true, "type": "string", "x-example": "38335"}, {"description": "Numeric id of the second team", "in": "query", "name": "team2_id", "required": true, "type": "string", "x-example": "37547"}], "path": "/gosugamers/encounters", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "match_id", "required": true, "type": "string"}, {"in": "query", "name": "team1_id", "required": true, "type": "string"}, {"in": "query", "name": "team2_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-games": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-games", "method": "GET", "params": [], "path": "/gosugamers/games", "pathParams": [], "produces": ["application/json"], "queryParams": [], "security": ["ApiKeyAuth"]}, "gosugamers-match": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-match", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "dota2"}, {"description": "Numeric tournament id from gosugamers-matches or gosugamers-results (tournament.id)", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63208"}, {"description": "Numeric match id from gosugamers-matches or gosugamers-results (id)", "in": "query", "name": "match_id", "required": true, "type": "string", "x-example": "663299"}], "path": "/gosugamers/match", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "tournament_id", "required": true, "type": "string"}, {"in": "query", "name": "match_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-match-game": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-match-game", "method": "GET", "params": [{"description": "Numeric game id from the games list of gosugamers-match", "in": "query", "name": "game_id", "required": true, "type": "string", "x-example": "1361936"}], "path": "/gosugamers/match-game", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "game_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-matches": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-matches", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india; omit for all games", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"description": "1-based page; page 1 with the default size is read from the public page, any other page or size from the site's JSON API; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/matches", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-player": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-player", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "dota2"}, {"description": "Numeric player id from gosugamers-team (roster[].id)", "in": "query", "name": "player_id", "required": true, "type": "string", "x-example": "368742"}], "path": "/gosugamers/player", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "player_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-rankings": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-rankings", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "valorant"}, {"description": "Ranking region id from the regions list of the response; 0 is Global; defaults to 0", "in": "query", "minimum": 0, "name": "region_id", "type": "integer"}, {"description": "Team name prefix, up to 100 characters", "in": "query", "name": "q", "type": "string", "x-example": "Te"}, {"description": "1-based page; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/rankings", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "region_id", "type": "integer"}, {"in": "query", "name": "q", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-results": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-results", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india; omit for all games", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"description": "1-based page; page 1 with the default size is read from the public page, any other page or size from the site's JSON API; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/results", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-stage-groups": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-stage-groups", "method": "GET", "params": [{"description": "Numeric tournament id from gosugamers-tournaments or gosugamers-matches", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63147"}, {"description": "Numeric stage id (stages[].id) from gosugamers-tournament", "in": "query", "name": "stage_id", "required": true, "type": "string", "x-example": "28413"}], "path": "/gosugamers/stage-groups", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "tournament_id", "required": true, "type": "string"}, {"in": "query", "name": "stage_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-team": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-team", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "dota2"}, {"description": "Numeric team id from gosugamers-matches, gosugamers-results or gosugamers-match (teams[].id)", "in": "query", "name": "team_id", "required": true, "type": "string", "x-example": "51203"}], "path": "/gosugamers/team", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "team_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-team-results": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-team-results", "method": "GET", "params": [{"description": "Numeric team id from gosugamers-rankings, gosugamers-results or gosugamers-team", "in": "query", "name": "team_id", "required": true, "type": "string", "x-example": "37547"}, {"description": "1-based page; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/team-results", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "team_id", "required": true, "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}, "gosugamers-tournament": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-tournament", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "dota2"}, {"description": "Numeric tournament id from gosugamers-matches or gosugamers-results (tournament.id)", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63208"}], "path": "/gosugamers/tournament", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "tournament_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-tournament-participants": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-tournament-participants", "method": "GET", "params": [{"description": "Game section of the tournament; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string", "x-example": "valorant"}, {"description": "Numeric tournament id from gosugamers-tournaments, gosugamers-matches or gosugamers-results", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63147"}], "path": "/gosugamers/tournament-participants", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "required": true, "type": "string"}, {"in": "query", "name": "tournament_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-tournament-talents": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-tournament-talents", "method": "GET", "params": [{"description": "Numeric tournament id from gosugamers-tournaments, gosugamers-matches or gosugamers-results", "in": "query", "name": "tournament_id", "required": true, "type": "string", "x-example": "63147"}], "path": "/gosugamers/tournament-talents", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "tournament_id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "gosugamers-tournaments": {"bodyParam": null, "bodyRequired": false, "id": "gosugamers-tournaments", "method": "GET", "params": [{"description": "Game section; one of dota2, counterstrike, lol, valorant, mobile-legends, pubg-mobile, wild-rift, free-fire, battlegrounds-mobile-india; omit for all games", "enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"description": "Tournament state; one of all, ongoing, upcoming, past; defaults to all", "enum": ["all", "ongoing", "upcoming", "past"], "in": "query", "name": "state", "type": "string"}, {"description": "Tournament name prefix, up to 100 characters", "in": "query", "name": "q", "type": "string", "x-example": "VCT"}, {"description": "1-based page; defaults to 1", "in": "query", "minimum": 1, "name": "page", "type": "integer"}, {"description": "Page size, 1 to 100; defaults to 10", "in": "query", "maximum": 100, "minimum": 1, "name": "page_size", "type": "integer"}], "path": "/gosugamers/tournaments", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["dota2", "counterstrike", "lol", "valorant", "mobile-legends", "pubg-mobile", "wild-rift", "free-fire", "battlegrounds-mobile-india"], "in": "query", "name": "game", "type": "string"}, {"enum": ["all", "ongoing", "upcoming", "past"], "in": "query", "name": "state", "type": "string"}, {"in": "query", "name": "q", "type": "string"}, {"in": "query", "name": "page", "type": "integer"}, {"in": "query", "name": "page_size", "type": "integer"}], "security": ["ApiKeyAuth"]}}
|
|
23
23
|
JSON
|
|
24
24
|
OPERATION_IDS = JSON.parse(<<~'JSON').freeze
|
|
25
25
|
["gosugamers-article", "gosugamers-articles", "gosugamers-encounters", "gosugamers-games", "gosugamers-match", "gosugamers-match-game", "gosugamers-matches", "gosugamers-player", "gosugamers-rankings", "gosugamers-results", "gosugamers-stage-groups", "gosugamers-team", "gosugamers-team-results", "gosugamers-tournament", "gosugamers-tournament-participants", "gosugamers-tournament-talents", "gosugamers-tournaments"]
|
|
@@ -29,7 +29,7 @@ module Crawlora
|
|
|
29
29
|
class Client
|
|
30
30
|
attr_reader :base_url
|
|
31
31
|
|
|
32
|
-
def initialize(api_key: ENV["CRAWLORA_API_KEY"], base_url: "https://api.crawlora.net/api/v1", timeout: 30, user_agent: "crawlora-gosugamers-ruby/0.
|
|
32
|
+
def initialize(api_key: ENV["CRAWLORA_API_KEY"], base_url: "https://api.crawlora.net/api/v1", timeout: 30, user_agent: "crawlora-gosugamers-ruby/0.2.0", transport: nil)
|
|
33
33
|
@api_key = api_key
|
|
34
34
|
@base_url = base_url.to_s.sub(%r{/+$}, "")
|
|
35
35
|
@timeout = Float(timeout)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crawlora-gosugamers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Crawlora
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby client for Crawlora's hosted GosuGamers API. Covers esports matches,
|
|
14
14
|
results, tournaments, games, news, and articles across 17 endpoints.
|