From 0156ed41dceeef48f070adf67f14d4ba4c4f6d61 Mon Sep 17 00:00:00 2001 From: aunsane Date: Thu, 28 Dec 2017 21:21:10 +0300 Subject: Steam: refactoring - reworking http requests - added ability to get game name by appid - another attempt to fix #633 - minor refactoring --- protocols/Steam/src/api/app_info.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 protocols/Steam/src/api/app_info.h (limited to 'protocols/Steam/src/api/app_info.h') diff --git a/protocols/Steam/src/api/app_info.h b/protocols/Steam/src/api/app_info.h new file mode 100644 index 0000000000..b08a3f38d6 --- /dev/null +++ b/protocols/Steam/src/api/app_info.h @@ -0,0 +1,16 @@ +#ifndef _STEAM_REQUEST_APP_INFO_H_ +#define _STEAM_REQUEST_APP_INFO_H_ + +class GetAppInfoRequest : public HttpRequest +{ +public: + GetAppInfoRequest(const char *token, const char *appIds) : + HttpRequest(HttpGet, STEAM_API_URL "/ISteamGameOAuth/GetAppInfo/v0001") + { + Uri + << CHAR_PARAM("access_token", token) + << CHAR_PARAM("appIds", appIds); + } +}; + +#endif //_STEAM_REQUEST_APP_INFO_H_ -- cgit v1.2.3