summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/api')
-rw-r--r--protocols/Steam/src/api/search.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/Steam/src/api/search.h b/protocols/Steam/src/api/search.h
index ed1b0420eb..e9e9691cc1 100644
--- a/protocols/Steam/src/api/search.h
+++ b/protocols/Steam/src/api/search.h
@@ -4,13 +4,14 @@
class SearchRequest : public HttpRequest
{
public:
- SearchRequest(const char *token, const char *text) :
+ SearchRequest(const char *token, const char *text, int offset = 0, int count = 30) :
HttpRequest(REQUEST_GET, STEAM_API_URL "/ISteamUserOAuth/Search/v0001")
{
AddParameter("access_token", token);
AddParameter("keywords", ptrA(mir_urlEncode(text)));
- // todo: may need to load all results (15 first at now)
- AddParameter("offset=0&count=15&targets=users&fields=all");
+ AddParameter("offset=%d", offset);
+ AddParameter("count=%d", count);
+ AddParameter("targets=users&fields=all");
}
};