summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-06-07 13:36:36 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-06-07 13:36:36 +0000
commit45542da458084e66d534b9d9f8f3ce6570888e95 (patch)
tree2cdcfa03906cc85fade40d26f8eaf6ef32d9cacc /protocols/SkypeWeb/src/requests
parent15bd23ef81adbc57885854d8220a0f777a23fb4a (diff)
SkypeWeb: Contact list loading rewritted to new api.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14051 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests')
-rw-r--r--protocols/SkypeWeb/src/requests/contacts.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/requests/contacts.h b/protocols/SkypeWeb/src/requests/contacts.h
index 1d01ae9cc5..613b9962ab 100644
--- a/protocols/SkypeWeb/src/requests/contacts.h
+++ b/protocols/SkypeWeb/src/requests/contacts.h
@@ -30,6 +30,18 @@ public:
<< CHAR_VALUE("X-Skypetoken", token)
<< CHAR_VALUE("Accept", "application/json");
}
+ GetContactListRequest(const char *token, const char *skypename, const char *filter) :
+ HttpRequest(REQUEST_GET, FORMAT, "contacts.skype.com/contacts/v1/users/%s/contacts", CMStringA(skypename).MakeLower().GetBuffer())
+ {
+ if (filter != NULL)
+ {
+ Url
+ << CHAR_VALUE ("filter", filter); //?filter=contacts[?(@.type="skype" or @.type="msn")]
+ }
+
+ Headers
+ << CHAR_VALUE("X-SkypeToken", token);
+ }
};
class GetContactsInfoRequest : public HttpRequest