From 7cb1539b0dbcf585472dd2341129adf174bb0bb5 Mon Sep 17 00:00:00 2001 From: aunsane Date: Sun, 14 Jan 2018 22:02:44 +0300 Subject: Steam: refactoring pt.2 --- protocols/Steam/src/api/search.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'protocols/Steam/src/api/search.h') diff --git a/protocols/Steam/src/api/search.h b/protocols/Steam/src/api/search.h index a34c2e8398..4484af4ba8 100644 --- a/protocols/Steam/src/api/search.h +++ b/protocols/Steam/src/api/search.h @@ -10,11 +10,23 @@ public: Uri << CHAR_PARAM("access_token", token) << CHAR_PARAM("keywords", text) - << INT_PARAM("offset=%d", offset) - << INT_PARAM("count=%d", count) + << 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_ -- cgit v1.2.3