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
|
#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", offset)
<< INT_PARAM("count", count)
<< CHAR_PARAM("targets", "users")
<< CHAR_PARAM("fields", "all");
}
//{
// "count": 1,
// "total" : 336,
// "success" : true,
// "results" : [
// {
// "steamid": "XXXXXXXXXXXXXXXXX",
// "type" : "user"
// }
// ]
//}
};
#endif //_STEAM_REQUEST_SEARCH_H_
|