-
Notifications
You must be signed in to change notification settings - Fork 1
/
url_const.go
37 lines (30 loc) · 953 Bytes
/
url_const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package steam_integration
import "net/url"
// scheme
const (
httpsScheme = "https"
)
// hosts
const (
SteamPoweredHost = "steampowered.com"
StoreHost = "store." + SteamPoweredHost
ApiHost = "api." + SteamPoweredHost
SteamCommunityHost = "steamcommunity.com"
)
// paths
const (
// Steam Web API paths
iSteamAppsInterfacePath = "/ISteamApps"
getAppsList = iSteamAppsInterfacePath + "/GetAppList"
getAppsListV2 = getAppsList + "/v2"
iSteamNewsInterfacePath = "/ISteamNews"
getNewsForApp = iSteamNewsInterfacePath + "/GetNewsForApp"
getNewsForAppV2 = getNewsForApp + "/v2"
getAppReviewsPathTemplate = "/appreviews/{appId}"
// Steam Website paths
appPath = "/app"
// Store paths
deckAppCompatibilityReportPath = "/saleaction/ajaxgetdeckappcompatibilityreport"
appDetailsPath = "/api/appdetails"
)
type SteamUrlFunc func(appId uint32) *url.URL