blob: a34c2e8398dda841527f4ae513eff5af24aaa979 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef _STEAM_REQUEST_SEARCH_H_
#define _STEAM_REQUEST_SEARCH_H_
class SearchRequest : public HttpRequest
{
public:
SearchRequest(const char *token, const char *text, int offset = 0, int count = 30) :
HttpRequest(HttpGet, STEAM_API_URL "/ISteamUserOAuth/Search/v0001")
{
Uri
<< CHAR_PARAM("access_token", token)
<< CHAR_PARAM("keywords", text)
<< INT_PARAM("offset=%d", offset)
<< INT_PARAM("count=%d", count)
<< CHAR_PARAM("targets", "users")
<< CHAR_PARAM("fields", "all");
}
};
#endif //_STEAM_REQUEST_SEARCH_H_
|