summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-07-06 19:08:21 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-07-06 19:08:21 +0000
commita46fe1de288c25b360f008d84fd744f608878ce3 (patch)
treeb7c5b629daee6101dd8b8a75de49b9bcc0df64c0 /protocols/SkypeWeb/src/requests
parent79e4ee10e9ebd6382f819502285685ce21e69ef0 (diff)
SkypeWeb: fixed search
git-svn-id: http://svn.miranda-ng.org/main/trunk@17070 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests')
-rw-r--r--protocols/SkypeWeb/src/requests/search.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/requests/search.h b/protocols/SkypeWeb/src/requests/search.h
index 7549006e58..e8aad493b3 100644
--- a/protocols/SkypeWeb/src/requests/search.h
+++ b/protocols/SkypeWeb/src/requests/search.h
@@ -22,10 +22,16 @@ class GetSearchRequest : public HttpRequest
{
public:
GetSearchRequest(const char *string, LoginInfo &li) :
- HttpRequest(REQUEST_GET, "api.skype.com/search/users/any")
+ HttpRequest(REQUEST_GET, "skypegraph.skype.com/search/v1.1/namesearch/swx/")
{
+
+ wchar_t locale[LOCALE_NAME_MAX_LENGTH] = { 0 };
+ LCIDToLocaleName(Langpack_GetDefaultLocale(), locale, _countof(locale), 0);
+
Url
- << CHAR_VALUE("keyWord", string);
+ << CHAR_VALUE("requestid", "skype.com-1.48.78-00000000-0000-0000-0000-000000000000")
+ << CHAR_VALUE("locale", T2Utf(locale))
+ << CHAR_VALUE("searchstring", string);
Headers
<< CHAR_VALUE("Accept", "application/json")
<< CHAR_VALUE("X-Skypetoken", li.api.szToken);