-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathendpoints.go
21 lines (18 loc) · 1.09 KB
/
endpoints.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package vrmlgo
// Known Discord API Endpoints.
var (
EndpointAPI = "https://api.vrmasterleague.com/"
EndpointToken = EndpointAPI + "Users/Token"
EndpointPlayers = EndpointAPI + "Players/"
EndpointTeams = EndpointAPI + "Teams/"
EndpointUsers = EndpointAPI + "Users/"
EndpointMe = EndpointAPI + "Users/@Me"
EndpointMember = func(uID string) string { return EndpointUsers + uID }
EndpointPlayer = func(pID string) string { return EndpointPlayers + pID }
EndpointTeam = func(tID string) string { return EndpointTeams + tID }
EndpointTeamMatchesHistory = func(tID string) string { return EndpointTeams + tID + "/Matches/History/Detailed" }
EndpointGame = func(gName string) string { return EndpointAPI + gName }
EndpointGameMatch = func(gName string, mID string) string { return EndpointAPI + gName + "/Matches/" + mID }
EndpointGameSeasons = func(gName string) string { return EndpointAPI + gName + "/Seasons" }
EndpointGamePlayersSearch = func(gName string) string { return EndpointAPI + gName + "/Players/Search" }
)