summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/api/app_info.h
blob: d8a187d444f7b4b13be04a865554f29c340a5be9 (plain)
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
#ifndef _STEAM_REQUEST_APP_INFO_H_
#define _STEAM_REQUEST_APP_INFO_H_

struct GetAppInfoRequest : public HttpRequest
{
	GetAppInfoRequest(const char *token, uint32_t appId) :
		HttpRequest(REQUEST_GET, "/ISteamGameOAuth/GetAppInfo/v0001")
	{
		this << CHAR_PARAM("access_token", token) << INT_PARAM("appIds", appId);
	}

	//{
	//	"apps": [
	//		{
	//			"appid": 271590,
	//			"name" : "Grand Theft Auto V",
	//			"iconurl" : "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/271590/1e72f87eb927fa1485e68aefaff23c7fd7178251.jpg",
	//			"logourl" : "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/271590/e447e82f8b0c67f9e001498503c62f2a187bc609.jpg",
	//			"logosmallurl" : "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/271590/e447e82f8b0c67f9e001498503c62f2a187bc609_thumb.jpg"
	//		}
	//	]
	//}
};

#endif //_STEAM_REQUEST_APP_INFO_H_